It is clear that having the code is because you only want to be the only person to run it.
But if you run it from a cron and store it outside the Document Root, nobody can run it but you.
Running it directly will not include the query string. You have to access it via the web, ie wget
The...