1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HOW TO FORBID THE TRAFFIC that I DONT WANT???

Discussion in 'Black Hat SEO' started by happie999, May 1, 2009.

  1. happie999

    happie999 Registered Member

    Joined:
    Mar 25, 2009
    Messages:
    52
    Likes Received:
    100
    Occupation:
    freelance
    hi:
    I have a problem. part of my site traffic is from adult site,(ex: www.example.com),
    how can i do with my webhosting to forbid the traffic from that url???
    i think only forbid ip is not useful.

    it is no matter with fake the referer.
    thanks
     
  2. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    maybe some htacces redirect based on referer i guess :)
     
  3. emggot

    emggot Registered Member

    Joined:
    Feb 19, 2009
    Messages:
    59
    Likes Received:
    1
    Location:
    Oz
    <? if($_SERVER['referrer'] == "http://www.example.com") die("Forbidden"); ?>
     
  4. PepsiGuy

    PepsiGuy Registered Member

    Joined:
    Apr 25, 2009
    Messages:
    81
    Likes Received:
    130
    I searched google and i came up with this:

    Code:
    <script type="text/javascript">
    var fromurl = "gurgle.c0m"; // URL to block
    var tourl = "hxxp://google.c0m/"; // URL to send to
    
    if(document.referrer.indexOf(fromurl) window.location.replace(tourl);
    </script>
    I'm not sure if that's what your looking for though, but from what I understood from your post that seems to be it.
     
  5. happie999

    happie999 Registered Member

    Joined:
    Mar 25, 2009
    Messages:
    52
    Likes Received:
    100
    Occupation:
    freelance
    .hitass can do it, i find in google. thanks to bhw.
    Code:
     ex:  # forbid badsite1.com and badsite2.com....
     
            RewriteEngine on
            # Options +FollowSymlinks
            RewriteCond % badsite1\.com [NC,OR]
            RewriteCond % badsite2\.com
            RewriteRule .* - [F]
     
    
    [F] - 403 Forbidden
    http://www.18000.biz
     
    Last edited: May 1, 2009
  6. dacash

    dacash Registered Member

    Joined:
    Jan 28, 2008
    Messages:
    51
    Likes Received:
    15
    Location:
    on the dark side.
    So many ways, best way would be .htaccess, since you don't use any other process on your server then apache. And if you really want to be optimized for performance, load those mod rewrite in your virtualhost in the httpd.conf.

    Doing that will load those at the running of the HTTPD server, and be in the memory. Those are only for high end traffic sites that need the absolute best tweaks in performance. 99% of the time the .htaccess is good enough.
     
  7. flybeta

    flybeta Junior Member

    Joined:
    Feb 7, 2009
    Messages:
    185
    Likes Received:
    14
    i dunno redirect them through a linkbucks site
     
  8. dynander

    dynander Regular Member

    Joined:
    Nov 16, 2008
    Messages:
    279
    Likes Received:
    53
    dont forbid, just redirect to another site (better if could make a site to monetize that traffic)