boxturt Posted August 13, 2005 Posted August 13, 2005 As the title says - I need to block a domain (not mine) that is parked ontop of one of my subdomains. The offender has been asked to remove the forward and place a simple link on his website. There isn't one, so all traffic is coming from the registrar. I've tried a few things to block but nothing is working. Every time I type evilsite.com it still goes to my sub. Even tried this (but I probably wrote it wrong: RewriteEngine on RewriteCond %{HTTP_REFERER} ^http://(www\.)?evilsite\.com RewriteRule .* - [F] Help please? Thanks Quote
boxturt Posted August 13, 2005 Author Posted August 13, 2005 Nevermind. Seems they have finally honored my wishes. For now.................... This info would still be good to know though Quote
TCH-Andy Posted August 13, 2005 Posted August 13, 2005 Hi, I think it would be HTTP_HOST not HTTP_REFERER, other than that you look correct >RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?evilsite\.com [NC] RewriteRule . - [F] Or, if you prefer to send them to a reject file... >RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?evilsite\.com [NC] RewriteRule . pathto/reject.htm [L] Quote
Deverill Posted August 13, 2005 Posted August 13, 2005 You could try going to the registrar who is forwarding it and explaining to them that you own the main site and don't approve of the redirect. It may work. I think Andy's reject file would be great opportunity to have some fun with them though. Quote
boxturt Posted August 13, 2005 Author Posted August 13, 2005 Ah ha! host not referer, dur me, got it - thank you Andy And I always liked the way the word 'reject' just sorta rolls off the tongue Quote
TCH-Rob Posted August 13, 2005 Posted August 13, 2005 Seems to roll off my wifes tongue quite often. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.