I have php file that generates my sitemap.xml file according to DB. I have a cron job that run this php script every month. How can I protect the php file, so only cron can run it, or certified user?
(I guess I cannot add login script, and session parameters to verify the user, because I want to enable running on cron, is that correct?)