Forum Moderators: coopster & phranque

Message Too Old, No Replies

Regex

         

toolman

4:30 am on Nov 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I wanted to block a ua in mod_rewrite like this:

RewriteCond %{HTTP_USER_AGENT} ^WebEMailExtrac.* [OR]

Except I want to block the ua "PingALink Monitoring Service 1.0" or "LinksManager"
can I just do this?

RewriteCond %{HTTP_USER_AGENT} ^Ping.* [OR]

littleman

5:28 am on Nov 26, 2001 (gmt 0)



RewriteCond %{HTTP_USER_AGENT} ^Ping [OR] Should do it. That will match anything that starts with "Ping". So it will get:
PingALink Monitoring Service 1.0
PingHead 2.1
Ping_you_to_hell 0.0.0.1
and so on...