Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Creating license in wordpress plugin (https://www.warriorforum.com/programming/790040-creating-license-wordpress-plugin.html)

Joseph Then 15th May 2013 12:07 AM

Creating license in wordpress plugin
 
I would like to release a plugin but I would want to put in licensing.

I would envision it as, upon purchase, my system will generate a code. The user will install the plugin and use the code. This code will be sent to my server, along with the URL sent from.

Is there such code available?

Michael71 15th May 2013 01:25 AM

Re: Creating license in wordpress plugin
 
http://www.warriorforum.com/warrior-...tion-here.html

You might have to ask shermanf

mariya20 15th May 2013 11:03 AM

Re: Creating license in wordpress plugin
 
the best way i think is to use an API key system and then encode your PHP using something along the lines of Zend Guard...

Satrya 15th May 2013 11:31 AM

Re: Creating license in wordpress plugin
 
Try easy digital downloads plugin and purchase the extension _https://easydigitaldownloads.com/extension/software-licensing/

P4tch 15th May 2013 11:32 AM

Re: Creating license in wordpress plugin
 
Quote:

Originally Posted by mariya20 (Post 8078347)
the best way i think is to use an API key system and then encode your PHP using something along the lines of Zend Guard...

Zend Guard is no good. Ioncube is what you're looking for. Also, this code isn't very hard to write either:

$code = $_REQUEST['code'];

if (empty($code)) exit;
//You could validate it for length and other things here..

$response = file_get_contents('http://yoursite.com/somefile.php?code=' . $code);

//Now do something with the response, for this example, I'll write it to a text file
file_put_contents($response, 'response.txt', FILE_APPEND);

Michael71 15th May 2013 02:17 PM

Re: Creating license in wordpress plugin
 
Guys, please read the post completely.

Quote:

Originally Posted by Joseph Then (Post 8076802)
I would envision it as, upon purchase, my system will generate a code. The user will install the plugin and use the code. This code will be sent to my server, along with the URL sent from.


RobinInTexas 16th May 2013 09:00 AM

Re: Creating license in wordpress plugin
 
Most if not all licensing schemes require encrypted of obfuscated code which many consider a bad thing. I rarely, almost never, will even consider a plugin or theme that incorporates it.

Better would be to include automatic update from your server and registration of the sites required where installed. That way pirates would be stuck with obsolete, maybe buggy, code in the future.


All times are GMT -6. The time now is 08:01 AM.