Jump to content


Photo

conf file question


  • Please log in to reply
1 reply to this topic

#1 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 19 July 2006 - 03:09 PM

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)

#2 willfitch

willfitch
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts
  • LocationNew Hope, PA

Posted 20 July 2006 - 02:21 PM

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"
Zend Certified Engineer (ZEND001989)
www.willfitch.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users