Blocking spam

Discussion in 'Apache' started by Term1nator, Aug 19, 2012.

  1. #1
    Hi,
    My site is being bombarded with weird request that are clearly spam and I want to block them in my .htaccess file.
    It seems that they all have one thing in common and that is they start with "http", so if I could detect that with a rewritecond and block it that would be perfect.
    Here are some examples of the page requests:

    http://www.mywebsite.co.uk/http://bublik.us/myip.php

    http://www.mywebsite.co.uk/http://login2.vip.kr1.yahoo.com/config/isp_verify_user?l=kaji.geo&p=*****

    http://www.mywebsite.co.uk/http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=78404014493&features=Rank&q=info.ca&num=100&filter=0

    http://www.mywebsite.co.uk/http://www.google.co.uk/search?complete=0&filter=0&output=ie&hl=en&q

    As you can see, they all have another website referenced in the path (show in red)
    I'm sure it must be possible to match this and block it, but I cant get it to work.
    Something like:
    RewriteCond %{REQUEST_URI} =^http.*?(http)
      RewriteRule .* - [F,L,E=spam:refspam]
    
    Code (markup):
    Any help would be appreciated.
    Thanks.
     
    Term1nator, Aug 19, 2012 IP
  2. bnehost.com

    bnehost.com Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cloudflare.com can help you with this. signup for the free or paid account. if you need any more help private message me.
     
    bnehost.com, Aug 27, 2012 IP