Licensing Code Tutorial

This tutorial covers how to add the Article Friendly Licensing code to your php or html script.

To grab the licensing code for your product, click on the "Generate License Code" link in your admin section, and chose the existing product from the dropdown list. Click on the submit button. This will show you a textarea that contains the code for your specific product, and can be copy/pasted into one page of the script you wish to protect.

Let's say you wish to protect a script of yours and the product name is "My Php Script". Click on the "Generate License Code" link in your admin section, and chose the "My Php Script" product from the list and click on the submit button to view the licensing code for that product.

Now, you need to chose one page to copy/paste the licensing code into, and we'll say it's the loging page of your product.

As an example, this is your login pages top part. The "Your page's original php code for your client's login page you wish to protect." is the beginning of the page's php code.

Copy/paste the licensing code ABOVE the beginning of your page's original php code, making sure it's at the start of the page's code, as shown in the photo below.

If you wish to use the licensing code in a page with an .htm or .html page extension, you simply rename the page's extension. Let's say you want to add the licensing code to an page called login.html. Change it to login.php and you can use the php licensing code. The page will still be an html page, but just renamed to a .php extension.

After you've copied the licensing code into your page, you will have to encode the page so no one can change or view the page's code. There are several php encoding programs, such as ioncube, zend guard, phpSHIELD & CODELOCK.

Encode the page, then you are ready to zip up your product's pages for your customers to download!

What happens now? -- Once your customer installs your product on their site and tries to log in, the license code will contact your license server (where AF licensing script is installed), and log the customer's domain, where the script is installed, IP and other info. AF licensing script will also check each time someone logs into your product that the license, domain, IP and license is valid. If the customer moves the protected script, it will not allow the login to continue and an error message wil be shown to the person attempting to log in.