ffdave77 Posted June 28, 2006 Share Posted June 28, 2006 I have the following url address:[a href=\"http://www.example.com/content/admin\" target=\"_blank\"]http://www.example.com/content/admin[/a]I have written a php login script which is required on all PHP pages. However, I would like to configure apache (.htaccess) to deny access to any files within the admin directory and sub directories (such as zips, images, etc.). I am confused on how to do this (after looking at Apaches web site). Any good examples to give? Quote Link to comment Share on other sites More sharing options...
apacheguy Posted June 29, 2006 Share Posted June 29, 2006 All you have to do is add "Deny All" without the quotes in that directory in the httpd config file. That will deny anyone who is trying to browse that directory. 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.