Whats the best to license a paid PHP script?
Thanks,
e39m5
| SitePoint Sponsor |



Whats the best to license a paid PHP script?
Thanks,
e39m5


Either restrict usage by domain or include a license file (or embed one in the code) with the code when you distribute it. The program will need to contact your server to verify the license or domain is valid. To protect from the user simply deleting that code, encode the application with IonCube or Zend Encoder.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.

its kindof an impossibility to entirely protect your scripts like that. think about software. microsoft puts all this effort into protecting their software and its still being pirated everywhere.
you can encode it forever, but it will still beable to be broken.



voodoo, of course but there should be some kind of protection. Does anyone know of a good program that can put together an installer for me? Or do I just need to do it by hand?
Thanks,
e39m5


17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.

wouldnt it be better and less complex if you were to simply sell the company a license to use your script based on some sort of contract?


A license is a contract.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.

i know that, but would this not be the better option?


That's how all software is sold. The contract isn't always written but it's always present for a sale to have occurred. So what is your suggestion? What part of the contract prevents wide distribution of the code for free after selling one copy?
It's not an issue for some companies, especially if what you're selling only appeals to a very limited market that isn't likely to go around sharing your code, but what else are we going to discuss in this thread?![]()
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.



Thanks everyone.
What if i want my users to be able to hack/edit my code?
e39m5
Well then, you should include such rights in the liscence.




sell the software license plus support fee.


17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.





If you don't have the funds to buy IonCube or Zend Encoder, you could host crucial portions of the application on your own servers, perhaps as a Web Service. This could be done in such a way as to render the public portions of the code worthless if license/domain validation fails.



Great. I just realized my entire application relies on the use of paypal integration. If I could divise a method to post IPN variables to the users script after I verify their license, the entire system will be secure (unless of course they make their own payment processing file). Can anyone think of any negatives to using a method like this off the top of their head?
Thanks,
e39m5


I don't follow. Why would *you* post to an IPN script (only PayPal can -- the verification protocol ensures that), and how does that relate to licensing?
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.



I have my customers set their paypal information to post the data to my website. My website can recieve the data, verify that they are using a valid license, and then post the data to my customers server.
e39m5
Bookmarks