Jump to content


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


Deny File Access In Specified Directorys

Recommended Posts

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?

Share this post

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

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.