Jump to content


Deny File Access In Specified Directorys

  • Please log in to reply
1 reply to this topic

#1 ffdave77

  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 28 June 2006 - 06:19 AM

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?

#2 apacheguy

  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 29 June 2006 - 05:20 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users