Can I block traffic from a source?

Discussion in 'General Marketing' started by dturnbull, Sep 8, 2006.

  1. #1
    Some people keep putting my site in one of those auto-surfing traffic generation schemes....and I want to use Adsense on my site but it's against their ToS...how can I stop the traffic coming from this auto-surfing source?
     
    dturnbull, Sep 8, 2006 IP
  2. Scotia King

    Scotia King Well-Known Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    133
    #2
    If you know the referrer domain you could use PHP to check that and change what you show those visitors.. i.e. remove the Adsense blocks from those pages so they can't be clicked on..
     
    Scotia King, Sep 8, 2006 IP
  3. dturnbull

    dturnbull Guest

    Messages:
    869
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i know the refferer domain, can you go into more detail on how to do that?
     
    dturnbull, Sep 8, 2006 IP
  4. andre75

    andre75 Peon

    Messages:
    1,203
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To block everything from the www.blogspot .... and some other domain domain use this:

    RewriteCond %{HTTP_REFERER} ^(http://)?www14\.blogspot.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^(http://)?www\.someotherdomain.*$
    RewriteRule .* - [F,L]

    in your .htaccess file
     
    andre75, Sep 9, 2006 IP