Quote:
Originally posted by FoZzI
How do I block a domain in htaccess?
|
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} ^.*livejournal.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*communities.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*systran.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*password.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*onecenter.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*readworld.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*keeptalking.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*apollos-temple.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*terra.*$
RewriteRule /* http://www.yourdomainorsponsor.com/ [R,L]
I use the above, and it works ok.