Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Someone has pointed their domain (www.bomberball.net) to the same IP as my domain (www.kapparate.com) , 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 www.bomberball.net ?

Thanks, as I'm a bit of an Apache beginner.

share|improve this question
add comment

2 Answers 2

up vote 7 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 kapparate.com and serve up whatever you'd like those visitors to see :) –  Jim G. Oct 31 '12 at 22:42
1  
@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
show 3 more comments

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
add comment

Your Answer

 
discard

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.