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

link|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
feedback

1 Answer

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

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

Will deny access to the secret.php page

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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