View Full Version : Block PHP to one domain
12-04-2008, 09:42 PM
I am trying to protect my php script from piracy. I do not want to use a commercial protection script, instead i was wondering if there was a bit of php code i could use to make my code only run on a certain domain specified? I could then encode this script so that they can't change this. Any ideas?
12-04-2008, 10:25 PM
is this an app that plan on distributing or hosting yourself? if you are running it on a host that you admin then outside users will not be able to see your source, only what is spit back to the browser. if this is an app that you plan on distributing to run on other hosts then be advised that PHP is an interpreted language and the source would be open to anyone who uses it unless you use something like Zend Guard (http://www.zend.com/en/products/guard/).
12-04-2008, 11:18 PM
I plan on distributing it but i dont want to use zend guard or similar,
I plan on distributing it but i dont want to use zend guard or similar,Thanks
In that case just Zend or NuCoder (http://www.nusphere.com/products/index.htm) could help you. The first one is time more expansive and is mostly for professionals while the second is much cheaper but give the same safety.
Without them your script could be easily changed and the code which checks the license could be simple removed…
p.s. The only solution is so called obfuscators... they change function’s and variable’s names with random sets of char. After obfuscation your code is almost "impossible" to analyze. As far as know they are free to use
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.