Forum Moderators: phranque

Message Too Old, No Replies

Condensing RewriteConds

         

keyplyr

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

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



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]

Thanks.

closed

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

10+ Year Member



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.