1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

sites in logs

Discussion in 'Apache' started by anton-io!, May 20, 2005.

  1. #1
    Hello!

    For some reason for one of my sites I am getting weird and un-related entries in my traffic logs and stats.

    Referring sites include many of the pharma-spam and I'm getting 3 times the amount in drug-related keywords coming to the website ... it's a programming related website.

    Keywords such as phentermine, phenter, phen, adipex, blah blah blah ... adipex dot this, adipex dot that ...



    Anyone experience something similar?

    Any way of blocking or should I need to bother with it at all?

    thx! :)
     
    anton-io!, May 20, 2005 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    Sounds like it might be referrer span. Do a Google search on referrer spam. I would attempt to explain it if I understood it. One way to fight referrer spam is to block spamming sites via your .htaccess file if you are running on an Apache server.

    Shannon
     
    Smyrl, May 20, 2005 IP
  3. anton-io!

    anton-io! Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks for that Shannon ... exactly what I was thinking ...

    I think I found some code ...

    # Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite1.com.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite2.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite3.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite4.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite5.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite6.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spammersite7.com.*$ [NC]
    RewriteRule \.*$ http://www.some-other-website.com [R,L]
    Code (markup):
    credit from here

    http://www.spywareinfo.com/articles/referer_spam/
     
    anton-io!, May 20, 2005 IP