Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with directory access 1

Status
Not open for further replies.

sofetster

IS-IT--Management
Mar 17, 2007
2
US
I need to allow access to only certain files *_notsecure.php in the root redirectory and have them use all other files on the site. I do not want to let ohter files be served directly, only fron these *_notsecure.php.

I setup environment variable based on local Referer.

How can deny access to all files but 3 special ones once in the root directory. I tried <Directory>, <DirectoryMatch>, <Files> and <FileMatch> - nothing works. As soom as I deny access to the DocumentRoot I cannot see any files at all, as soon as I allow access I can see files in the subdirectories.

Please help.

Dan
 
The problem I have is this:

I would like to restrict certain file extenions in certain
directpries without htaccess, right from httpd.conf and looks like I failed to do so.

If I specify a rule for Referrer for php files then none of my php can be accessed from outside.

I use Apache 2.2 on Solaris 10 and looks like FileMatch does not take the path into consideration.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top