referrer spam

Discussion in 'Traffic Analysis' started by kyle422, Apr 19, 2005.

  1. #1
    I was checking my logs today and noticed I'm getting a lot of traffic from a weird site
    http://www. coresat. com/
    Does anyone know how to block this referrer? I don't think I want traffic coming from this site. :rolleyes:
     
    kyle422, Apr 19, 2005 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    Do you have a .htaccess file? If so it can be blocked. Let me look for code.

    Shannon

    ----------

    If they are not on shared ip add line

    deny from 123.456.789.012 or whatever their ip is.

    If on shared id add

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^http://www\.)?badurl.com.*$[OR]
    RewriteCond %{HTTP_REFERER} ^http://www\.)?secondbad.com.*$[NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://www\.)?thirdbad.com.*$[NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://www\.)?fourthbad.com.*$[NC]
    RewriteRule .*$ -[F,L]

    I am trying a multiprong approach. I want to ban particular URL's which have already spammed, ban URL's that have certain keywords like sex, Viagra, porn, ... and spammy urls like keyword1-keyword2-keyword3.com

    I do not have my .htaccess perfected but have had luck with code given above. I believe most restrictive rewrite rules should be listed first.

    S
     
    Smyrl, Apr 19, 2005 IP
    kyle422 likes this.
  3. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Smryl, I'll try that! :)
     
    kyle422, Apr 20, 2005 IP