I'm looking for a secure solution to ensure that my PHP script is executing LOCALLY via shell (not via 127.0.0.1)
e.g.
C:\php > php P:\ath\to\script.php
The reason : cron or win task scheduler will run this script once per month to generate a token that grants access to another page (MySQL stuff) and I don't want external clients to be able to run this script.