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? 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? 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 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
Archived
This topic is now archived and is closed to further replies.