Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you apply an Apache deny directive to one specific page only in a directory?

share|improve this question
you keep generating new accounts, perhaps because you are clearing cookies on every visit? You are damaging your ability to respond to your own question. – Jeff Atwood Jan 2 '11 at 21:03

If your page is in a specific file you can use the <Files> ... </Files> directive

<Files secret.php >
order allow,deny
deny from all

Will deny access to the secret.php page

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.