Jump to content

Archived

This topic is now archived and is closed to further replies.

sdaniels

conf file question

Recommended Posts

if i have a website http://www.whatever.com
and i have several pages in my htdocs folder

example:  index.php, hello.php, test,php

how 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)

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.