Forum Moderators: phranque

Message Too Old, No Replies

Deny from: does capitalization matter

         

Joey123

11:30 pm on Sep 9, 2005 (gmt 0)

10+ Year Member



Does it matter if the "deny from" is capitalized or in lower case?

SetEnvIf Request_URI "(robots\.txt)$" allowit

<Files *>
Order Deny,Allow
#dead-links.com
Deny from 64.151.64.0/18
deny from 216.93.160.0/19

JAB Creations

2:19 am on Sep 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use EXACTLY the casing on the Apache site.

You can try this too!

You can change netscape in to whatever you want to test it out! Make sure of course your user-agent is netscape or whatever you test it out with.

SetEnvIf User-Agent "Netscape" Netscape
<Files /error/error-403.php>
order allow,deny
deny from Netscape

I don't think it is case sensitive though...

jdMorgan

2:26 am on Sep 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I use EXACTLY the casing on the Apache site.

That's the best method to avoid trouble - stick to the book.

Jim