Echilon Posted January 26, 2007 Share Posted January 26, 2007 I'm looking for a way to obfuscate the source of a project I'm developing, and also to lock the script to a specified domain. I was thinking of using $_SERVER['HTTP_HOST'] somehow, but I'm not sure how I'd make it work. Does anyone have any suggestions? Link to comment https://forums.phpfreaks.com/topic/35879-protect-source/ Share on other sites More sharing options...
Psycho Posted January 26, 2007 Share Posted January 26, 2007 Well, here is a website that will obfuscate your code: http://sls.web.psi.ch/goto.php/duo/obfuscate.phpBut, I depending on your needs you may want to have a more professional application for the purpose: http://www.gridinsoft.com/protect.phpAs for ensuring the program is running on the correct server just use something like:if ($_SERVER['HTTP_HOST'] != "mydomain.com") { die ("This is the wrong domain");}You could use it at the top of each page or as an include file. Link to comment https://forums.phpfreaks.com/topic/35879-protect-source/#findComment-170186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.