views:

88

answers:

2

I want to divide my web application into two parts. One part is free, like a demo for people to use. The other part is not; a extension that is paid for but requires authorization and a license to use.

My idea is to sell the extension without having it being compromised. Once the extension is sold, the buyer can't upload it to some other site and make it "free" for other people to use. Thus the extension would check a database from another domain to authorize the use of its script.

How can I achieve this?

+6  A: 

Give the free script away for users to run on their own site. Run the licensed non-free script only on your server and hook them together using an API over HTTP.

Ryan Nowakowski
Of course, this option means that any calculations would have to be done on your server, and your customers won't be able to use their software when they're not connected to the Internet...
BlueRaja - Danny Pflughoeft
The requirement that the script check authorization from another domain basically means that the script can't be used offline anyway.
slebetman
A: 

Use a professional solution like Zend Guard.

OcuS
My intention is not to advertise...
OcuS