Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Internet Marketing (http://www.go4expert.com/forums/internet-marketing-forum/)
-   -   Block certain websites (http://www.go4expert.com/forums/block-certain-websites-t202/)

shabbir 17Nov2004 10:35

Block certain websites
 
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 13Dec2010 18:08

Re: Block certain websites
 
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 13Dec2010 19:02

Re: Block certain websites
 
Quote:

Originally Posted by joy1986joy (Post 75871)
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. :D

joy1986joy 14Dec2010 09:27

Re: Block certain websites
 
You are welcome shabbir.


All times are GMT +5.5. The time now is 21:50.