TeroYukio Posted August 13, 2012 Share Posted August 13, 2012 Hey guys, I'm wondering if there is a way to make a php cronjob only executable by the server. In other words if I go to www.yoururlhere.com/cron/cronjob.php it will execute the script. Is there anyway of preventing that? Maybe with chmod? Quote Link to comment https://forums.phpfreaks.com/topic/267017-chmod-a-cronjob-so-only-server-can-execute/ Share on other sites More sharing options...
xyph Posted August 13, 2012 Share Posted August 13, 2012 Why not just keep the php script outside of the webroot? Quote Link to comment https://forums.phpfreaks.com/topic/267017-chmod-a-cronjob-so-only-server-can-execute/#findComment-1368988 Share on other sites More sharing options...
TeroYukio Posted August 13, 2012 Author Share Posted August 13, 2012 Thank you Quote Link to comment https://forums.phpfreaks.com/topic/267017-chmod-a-cronjob-so-only-server-can-execute/#findComment-1369002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.