Forum Moderators: open

Message Too Old, No Replies

gazz/5.0

Need to update .htaccess file

         

guitaristinus

10:18 am on Nov 8, 2004 (gmt 0)

10+ Year Member



A new version of gazz/2.1

[webmasterworld.com...]

From my log:
210.173.179.26 - - [07/Nov/2004:00:09:09 -0500] "GET /mysite/page.htm HTTP/1.1" 200 6229 "-" "gazz/5.0 (gazz@nttr.co.jp)"

I'm changing my .htaccess file from
RewriteCond %{HTTP_USER_AGENT} ^gazz/2.1
to
RewriteCond %{HTTP_USER_AGENT} ^gazz.*

Is ^gazz.* right?

balam

4:34 pm on Nov 8, 2004 (gmt 0)

10+ Year Member



> Is ^gazz.* right?

Yes it is. You now also know why version numbers in your RewriteCond's aren't always a good thing... :)

jdMorgan

11:08 pm on Nov 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I like

RewriteCond %{HTTP_USER_AGENT} ^gazz/

No ambiguity about the user-agent name, and accepts anything following the slash...

Jim

guitaristinus

10:24 am on Nov 9, 2004 (gmt 0)

10+ Year Member



Thanks.

Jim, I am trusting you and replaced a bunch of .* with a /

wilderness

2:42 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Jim has far more experience than I at rewrites and has assisted me on many occasions.
I prefer the KISS (Keep It Simple and Stupid.)

^gazz

covers most bases and catches "anything that begins with gazz" regardless of what may come after those characters.

The same rule (modified to web) works for the multiple bots whose name begins with web to harvest pages.

balam

3:38 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



The nice thing is that we're all correct and in the end, it just boils down to personal preference!