WorldDrknss Posted August 19, 2008 Share Posted August 19, 2008 I know this is a stupid question, that I even should be able to figure out. I have a cron script that I do not want people to be able to open it in a browser and I would like to know what the best solution would be. would the best option to use $_SERVER['REQUEST_URI'] and php die() Link to comment https://forums.phpfreaks.com/topic/120440-preventing-browser/ Share on other sites More sharing options...
kenrbnsn Posted August 19, 2008 Share Posted August 19, 2008 Don't put the file in a directory that is accessible by the web server. Ken Link to comment https://forums.phpfreaks.com/topic/120440-preventing-browser/#findComment-620603 Share on other sites More sharing options...
WorldDrknss Posted August 19, 2008 Author Share Posted August 19, 2008 I think I'll create an administration function, because it will need a manual overrun as well. Basically if not admin redirect to site home page. Link to comment https://forums.phpfreaks.com/topic/120440-preventing-browser/#findComment-620611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.