Niccaman Posted May 22, 2009 Share Posted May 22, 2009 I have a few crons that users can currently access by simply entering the correct url. They are meant to be run ONLY by the server (crons). No browser is meant to be allowed to view it. Is there any php i can do to check if a user is accessing the file? Link to comment https://forums.phpfreaks.com/topic/159306-security/ Share on other sites More sharing options...
Ken2k7 Posted May 22, 2009 Share Posted May 22, 2009 Put the file outside of root dir. By that I mean outside of public view folder. Link to comment https://forums.phpfreaks.com/topic/159306-security/#findComment-840200 Share on other sites More sharing options...
Niccaman Posted May 22, 2009 Author Share Posted May 22, 2009 will crontab still be able to access it? Link to comment https://forums.phpfreaks.com/topic/159306-security/#findComment-840207 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.