Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Condensing RewriteConds

12:52 am on Nov 16, 2003 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
votes: 893

I wish to add this UA: "iVia-PageFetcher" to my disallow list. I already have:

RewriteCond %{HTTP_USER_AGENT} ^Page(Grabber¦Fetcher) [NC,OR]

Which is the better way to add this new UA into the existing RewriteCond.

- This (with no beginning anchor)?

RewriteCond %{HTTP_USER_AGENT} Page(Grabber¦Fetcher) [NC,OR]

- Or this (with the variable)?

RewriteCond %{HTTP_USER_AGENT} ^(iVia-)?Page(Grabber¦Fetcher) [NC,OR]

4:15 am on Nov 16, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Aug 20, 2003
votes: 0

The safe way would be to use your second option. But since most page grabbers and fetchers are malicious anyway, if I were to ban them, I would use your first option.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members