Copy link to clipboard
Copied
Hello,
A friend asked me a question. Is it possible to make a script being used for a certain period of time ? Like a trial Version ?
He writes script and shares them but he would like those scripts being used only a certain duration.
I don't think it is possible but who knows...
Best Regards
Copy link to clipboard
Copied
Yes, you can add a function that checks the current time and it it exceeds a set time it will bypass the script. The only issue with this is that the scripts can't store the time the trial started, so it would have to be coded in when the script is distrubuted, or you would have to have the script create some sort of file CSV, xml, or txt file that could store that value, but the user could most likely modify that file too. If you don't save as a binary file, it would also be extremely easy to bypass this.
Copy link to clipboard
Copied
Similar questions about securing a script come up from time to time. I have never seen anyone post a solution that could not be broken with very little effort.
Copy link to clipboard
Copied
I think perhaps it could be done if you required an Internet connection during the trial period. The script could retrieve the trial start time from the script writers web server. If its not found it would created the start date record for the current machine on the server and the local machine if no local recording. If the record get recorded run if not don't run. If found on the server compare the current date time. The question is something like that worth doing.
Copy link to clipboard
Copied
Thank Guys for your help. This is very Helpful.