Creating license in wordpress plugin

6 replies
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?
#creating #license #plugin #wordpress
  • Profile picture of the author Michael71
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[8076932].message }}
  • Profile picture of the author mariya20
    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...
    {{ DiscussionBoard.errors[8078347].message }}
    • Profile picture of the author P4tch
      Originally Posted by mariya20 View Post

      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);
      {{ DiscussionBoard.errors[8078440].message }}
  • Profile picture of the author Satrya
    Try easy digital downloads plugin and purchase the extension _https://easydigitaldownloads.com/extension/software-licensing/
    {{ DiscussionBoard.errors[8078435].message }}
  • Profile picture of the author Michael71
    Guys, please read the post completely.

    Originally Posted by Joseph Then View Post

    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.
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[8078854].message }}
  • Profile picture of the author RobinInTexas
    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.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8081326].message }}

Trending Topics