View Single Post
Old 2003-09-15, 05:52 AM   #12
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
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.
urb is offline   Reply With Quote