Forum Moderators: open
Concerning Interseer spider and mod_rewrite:
Am I right in presuming that using NC means to ignore the character case of the line?
because Interseer is visiting me with spiders in which the name is sometimes upper-case and sometimes lower-case.
now in my HTaccess to disallow spiders, I have:
RewriteCond %{HTTP_USER_AGENT} ^internetseer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^InternetSeer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internetseer.com [OR]
so the line here under would have the same result as the 3 lines above, Yes or No?
RewriteCond %{HTTP_USER_AGENT} ^internetseer.com [NC;OR]
and can I mix lines, meaning sometimes a line with [NC;OR] and inbetween some lines only with [OR]?
Thanks and Regards,
Sanuk
You ALMOST have it right!
Yes, if the syntax is correct,
RewriteCond %{HTTP_USER_AGENT} ^internetseer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^InternetSeer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internetseer.com [OR]
will be the same as:
RewriteCond %{HTTP_USER_AGENT} ^internetseer.com [NC;OR]
Your problem is there is a smicolon in there: [NC;OR]
that should be a comma: [NC,OR]
I love NC, a great space saver!
dave