Jump to content

Recommended Posts

Posted

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? :blink:

 

Thanks

Posted

Nevermind. Seems they have finally honored my wishes.

 

For now....................

 

This info would still be good to know though :blink:

Posted

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]

Posted

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. :blink:

Posted

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 :blink:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...