security - How do I verify users of my PHP application? -


while installing application onto client's server, make sure client (or future developer them, etc) not copy application , place on other domains/servers/local servers.

how can verify application running on server installed on? not want substantial lag in script every time runs, assume 'handshake' method not appropriate.

i thinking script request php page on own server every time runs. send server server info , domain name, script can check against database of accepted clients. if request invalid, server handles work of emailing me details can follow up. should not slow down client's script isn't expecting response, , still operate on 'invalid' server until can investigate , follow them personally.

if best method (or if there better), php call should making request server's script? file_get_contents, curl , similar seem retrieve response, don't need.

update

thank responses. understand php open source , should freely available edit. should have stated more initially, intentions verification method assist me in finding breaching license agreement. application covered under license, include check can monitor initial misuse of application.

hence, may still breach license , go unnoticed, if implement script have advantage of 'lazy robbers' don't break apart application , remove verifier before ripping it.

does justify use of such script? if so, curl best option?

any checking code verification replaced return true;. @ faq @ https://stackoverflow.com/tags/php/info :

q. can protect php code theft? if so, how?
a. there no effective technical solution protect, encode or encrypt php source code. there many products offer levels of protection, can broken time , effort. best option not technical solution, legal solution in form of license agreement.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -