Forum Moderators: phranque

Message Too Old, No Replies

deny User-Agent "DA" gives error403 to W3C validation

         

tito

1:58 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



Hello,

i'm testing my htaccess and finally everything works right (thanks to jdMorgan), but if i add:

setenvifnocase User-Agent "DA" getout

the W3C validation <http://validator.w3.org/check?uri=referer> gets an error403

as far as i know the user agent for W3C is
"W3C_Validator/1.432"
so, why this is happening?

Thanks in advance,
tito

jdMorgan

2:18 pm on Sep 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Because "W3C_Validator/1.432" matches your unanchored, case-insensitive pattern for "DA".

If you wish to block exactly "DA", then use a pattern of "^DA$"

Or maybe you wish to block anything that starts with "DA" using "^DA"

Jim

tito

5:01 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



Ok, Thanks Jim.