Protect source

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Echilon
Forum Newbie
Posts: 12
Joined: Fri Nov 25, 2005 4:11 am
Location: England
Contact:

Protect source

Post by Echilon »

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?
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I remember a couple of long threads about obfuscating source code lately. I'm sure there's some useful info in there. I can't help you any further myself.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

All of the obfuscation systems available have been broken that I'm aware of. The same goes for the opcode generation tools too. So at best, it's a thin veil of security.

As for locking it to a domain, if someone decodes the obfuscation/opcode, it's easily removed. I'd suggest you spend more time on a good license and contract then trying to hide the internals.
User avatar
da404lewzer
Forum Newbie
Posts: 8
Joined: Fri Jan 26, 2007 1:00 pm

Post by da404lewzer »

or host it yourself and dont let them into the box.

i've also considered bundling a small webserver for medium business solutions that could be kept on-site and be semi-difficult to break into reporting any shutdowns or whatnot. you just have to worry about fixing problems remotely. hehe
Post Reply