Block certain websites

Go4Expert Founder
17Nov2004,10:35   #1
shabbir's Avatar
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 like this
Contributor
13Dec2010,18:08   #2
joy1986joy's Avatar
Hi
If I don't come to the last thread then I may miss this nice and useful info which I don't know.
Go4Expert Founder
13Dec2010,19:02   #3
shabbir's Avatar
Quote:
Originally Posted by joy1986joy View Post
Hi
If I don't come to the last thread then I may miss this nice and useful info which I don't know.
Thanks for bumping a 2004 thread to the top once again.
Contributor
14Dec2010,09:27   #4
joy1986joy's Avatar
You are welcome shabbir.