Block certain websites

Discussion in 'Internet Marketing' started by shabbir, Nov 17, 2004.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    There are many website who spam your website URL so that you see them as your referrer and the reason to do this can be anyone of the following

    1. You have log opened to public and so there url as referrer helps them get a backlink.
    2. You may need to sign up as why he is referring you.

    Mainly this is done by admin-shop and there partners site.
    and you can block them by using the .htaccess of your web site abd putting the following lines in your .htaccess.
    Code:
    RewriteEngine On
     RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain1.com/.*$ [NC,OR]
     RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain2.com/.*$ [NC]
     RewriteCond %{REQUEST_URI} ^/.*$
     RewriteRule ^.* - [F]
    Thanks
    Shabbir Bhimani
     
    joy1986joy likes this.
  2. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    Hi
    If I don't come to the last thread then I may miss this nice and useful info which I don't know.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Thanks for bumping a 2004 thread to the top once again. :D
     
  4. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    You are welcome shabbir.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice