Hi everyone!! I am NOT Topher Grace, nor do I want to be. I am just Topher Scribbles and just for kicks, I really want to out-rank Topher Grace's IMDB website. If you want to help, just link to me. Thanks and enjoy some boring fun!!

Go to http://www.dnsyard.com for some free DNS tools.

Deny Users in a Directory and Allow Users in Subdirectory

It took me a while to figure this out. I wanted to deny the public access to a directory, like /deny and allow the public in a subdirectory like /deny/allow.

This was done by the specific order of Allow, Deny. If you mix these up, you will either allow all or deny all. Anyway, here’s what you do to deny users to /deny and allow users in /deny/allow.

<Directory /deny>
Order allow,deny
Allow from insert IP’s
</Directory>

<Directory /deny/allow>
Order deny,allow
Allow from all
</Directory>

Post a Comment

You must be logged in to post a comment.