A script which stops and says
"You have not paid your monthly subscription fee agreed to when you li +censed this software. Please visit htttp://yoursite.com/payme.html and submit your license f +ee to receive a new run key. You will need your license number, which is XXXX-XXXX-XXXX-XXXX. Thank you. This program will no longer run until the subscription is p +aid"
makes it clear that YOU NEEDA PAY YOUR BILL, BUCKO and no damage is done, except perhaps to the ego of the person who didn't pay the bill.

A self-deleting program could be stretched by a sympathetic DA into being a "logic bomb" and therefore prosecuted as illegal - even if it was your right to disable access to the program. This is not a chance to take. Also, you might get sued for loss of income, etc. by the licensee (even if he's in the wrong!) because he had to spend X hours at $LARGENUM per hour making sure your program hadn't damaged your system. Also not a chance to take.

As mentioned, the only real way to be sure that your client isn't cheating is to host the software somewhere you control and block access if the bills aren't paid. Just hosting the license check won't do, especially in Perl, since the the license check can be removed without damaging the rest of the code.


In reply to Re^2: License key for script by pemungkah
in thread License key for script by shanu_040

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.