Block certain websites

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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
joy1986joy's Avatar, Join Date: Nov 2010
Contributor
Hi
If I don't come to the last thread then I may miss this nice and useful info which I don't know.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
joy1986joy's Avatar, Join Date: Nov 2010
Contributor
You are welcome shabbir.