Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Someone has pointed their domain ( to the same IP as my domain ( , and Google is now showing the former when searching for Kapparate, rather than the latter. What's the best way to block requests coming from ?

share|improve this question
up vote 11 down vote accepted

You should put your actual web site in an Apache <VirtualHost> block, and have the default host serve only the Apache test page.

If you are using name-based virtual hosts, like most people, then just ensure that the default virtual host appears first in your configuration. You can check your configuration with a command such as httpd -S.

See also Apache's examples for more information.

share|improve this answer
Can you point me to a link on how to do that? I tried setting the ServerName and ServerAlias in my only Virtual Host *:80, to no effect? – Arcymag Oct 31 '12 at 22:19
+1. Never mind. I got it. Thanks! – Arcymag Oct 31 '12 at 22:23
Yep, "someone" is in for a surprise the next time they look at that. – Michael Hampton Oct 31 '12 at 22:24
And if you really wanted them to get the hint, you could add another VirtualHost entry for and serve up whatever you'd like those visitors to see :) – Jim G. Oct 31 '12 at 22:42
@JimG. That's the valid domain. Though I do like the idea of creating a special virtual host for the invalid domain and redirecting it to goatse... – Michael Hampton Oct 31 '12 at 22:45

If you are using Plesk panel, you are exposing yourself to this site duplicate issue if you have a "default site" selected for your IP address under "Tools and settings > Ip addresses". That is... if you enter your IP in browser and you see your domain.

Fix this by selecting none as default site for your IP; then that external domain will display a default Plesk page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.