Forum Moderators: open

Message Too Old, No Replies

interseer or InterSeer

using NC and OR is ok?

         

sanuk

7:46 am on Jun 15, 2003 (gmt 0)

10+ Year Member



Hi,

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

carfac

5:30 pm on Jun 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

sanuk

6:22 pm on Jun 15, 2003 (gmt 0)

10+ Year Member



Hi,
Thanks Carfac

regards,
Sanuk

carfac

8:57 pm on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sanuk:

Glad to help out!

dave