PHP code license key

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

PHP code license key

Post by tomsace »

Hey,

I was looking on the web for any way to use a kind of licence key method on scripts I sell on my website to avoid people re-selling my scripts or even re-using them on many more sites etc...
Just a basic code like the user puchases my script and they generate a code from my site which they have to enter in there code in order for it to work, also so that it only works on there website and no other. I have used a website like this before when I bought a few codes and this method was used.

Thanks,
Tom.
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: PHP code license key

Post by kaisellgren »

tomsace wrote:Hey,

I was looking on the web for any way to use a kind of licence key method on scripts I sell on my website to avoid people re-selling my scripts or even re-using them on many more sites etc...
Just a basic code like the user puchases my script and they generate a code from my site which they have to enter in there code in order for it to work, also so that it only works on there website and no other. I have used a website like this before when I bought a few codes and this method was used.

Thanks,
Tom.
You need to encode your script.

Look at here: http://www.zend.com/en/products/guard/
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

Re: PHP code license key

Post by tomsace »

You need to encode your script.

Look at here: http://www.zend.com/en/products/guard/
Thanks, But the scripts I am selling are for users to input into there websites, not full pages...
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: PHP code license key

Post by kaisellgren »

tomsace wrote:
You need to encode your script.

Look at here: http://www.zend.com/en/products/guard/
Thanks, But the scripts I am selling are for users to input into there websites, not full pages...
You can encode certain files/scripts. So you can keep whole code non-encoded and then encode the licensing related parts of it.
xeorex
Forum Newbie
Posts: 6
Joined: Sat May 17, 2008 2:28 pm

Re: PHP code license key

Post by xeorex »

I don't resell codes I bought from websites but on the other hand it's a real pain to get those encoded snippet of codes sold around.
They never work quiet right with modified systems and we then can't modify the code to get it working.

Just make sure to make it clear on your web shop that the code is encoded. It saves time for both party for issuing/getting a refund.
Post Reply