Forum Moderators: phranque

Message Too Old, No Replies

Strange HTTP_REFERER

How to write a block for a strange referer

         

Warmbells

2:14 pm on Aug 7, 2004 (gmt 0)

10+ Year Member



Hi,

Can someone give me an idea as to how I can block this weird referer XXXX:+++++++++++++++++++++++++++++++++++++++++++ I have found it a few times in my logs and tried to block it with RewriteCond %{HTTP_REFERER} ^XXXX:+$ [NC,OR] but I got a server error. It has different IPs so I dont want to block on IP address.

Thanks for your help.

Gerald

Birdman

2:47 pm on Aug 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,

RewriteCond %{HTTP_REFERER} ^XXXX: [NC,OR]

That ought to do it. If you want to be more specific and match the plus signs, use this one:

RewriteCond %{HTTP_REFERER} ^XXXX:\++$ [NC,OR]

Unless the log shows that the referrer is using upper and lower case letters, no need for the NC flag.

Birdman

Warmbells

3:43 pm on Aug 7, 2004 (gmt 0)

10+ Year Member



Thanks,

That works okay, it looks like I'd forgotten to escape the ++s.

Gerald