Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

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.