http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item- developer/
...
For optional copy protection, APID provides a licensing system that ties into the InDesign serial number. The end-user needs a proper license from you before the scripts can be executed. You can also provide your potential customers with a time-limited demo of your solution
...