PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jun 05, 2020 1:44 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jan 22, 2012 7:53 am 
Offline
Forum Newbie

Joined: Sun Jan 22, 2012 7:46 am
Posts: 3
Hi, I have a PHP code which I will be selling at a later date, and I was hoping someone could help me to implement a method of protecting the code from being sold on or otherwise distributed to those I had not sold it to. My idea was to create a .txt file on my web server which had a list of all the IP addresses that I had sold the code to and were thus allowed to run it. I then need to implement something into the script that will send the IP of the server running it to my web server, match it against the .txt file, and if the IP was listed in the .txt file, the rest of the script would continue to run as normal. If the IP wasn't listed in my .txt file then the script would exit at that point and the rest of the code below it would not run. I hope my explanation has been clear as I really have no idea how to write the code for it, so I was hoping that one of you guys could help me out. Alternatively, if there is another method that you know of protecting my script from being run on unregistered IP I would love to hear that as well. Thanks


Top
 Profile  
 
PostPosted: Sun Jan 22, 2012 7:58 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
You'd also need to use something like ionCube to prevent people from just removing the code in question.

_________________


Top
 Profile  
 
PostPosted: Sun Jan 22, 2012 8:00 am 
Offline
Forum Newbie

Joined: Sun Jan 22, 2012 7:46 am
Posts: 3
Yes, I can encode it afterwards, but to encode it on ionCube online is only $0.50, whereas to buy ionCube software and license it to IP addresses is a few hundred dollars, and I don't have that money I'm afraid :/


Top
 Profile  
 
PostPosted: Sun Jan 22, 2012 8:45 am 
Offline
Forum Newbie

Joined: Sun Jan 22, 2012 7:46 am
Posts: 3
Please help :)


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 2:41 am 
Offline
Forum Regular
User avatar

Joined: Tue Sep 28, 2010 11:41 am
Posts: 984
Location: Columbus, Ohio
Well, if you can encode it for only $.50, why not code in the IP restriction, and encode it?

There is also the possibility of a call back to your server to verify key parts (ie, when someone logs in, send back to check against your IP list), of course anyone really wanting to rip it, will be able to monitor data sent received, and see the code to use it, again, unless you encode it via ioncube or similar (zend makes one I believe).

-Greg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group