sdaniels Posted July 19, 2006 Share Posted July 19, 2006 if i have a website http://www.whatever.comand i have several pages in my htdocs folderexample: index.php, hello.php, test,phphow can i stop someone from directly accessing http://www.whatever.com/hello.php through the conf file?i have set it up to disallow going to a folder in the htdocs, but how can i stop from all pages execpt index.php?or can this be done? (im trying to get around having to validate session variables on every page) Quote Link to comment Share on other sites More sharing options...
willfitch Posted July 20, 2006 Share Posted July 20, 2006 Don't use your httpd.conf file to do this! Just set the permissions to 444 and it won't be web viewable."chmod 444 hello.php" Quote Link to comment 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.