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.

I have someone who added my IP address (private server) as an A record to some of his porn domains. Apache is delivering the default page ("It works"), but I try to find a way to not answer the call at all.

Anyone any idea?

Thanks

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Set your default virtual host to a 403 forbidden response/message:

<VirtualHost *>
 ServerName nohost
 ErrorDocument 403 "The website you requested was not found on this server"
 RewriteEngine on
 RewriteRule . - [F]
</VirtualHost>
share|improve this answer
    
And just make sure this default host loads before any of your real virtual hosts. –  Shane Madden Sep 13 '11 at 14:46

I once had a similar problem. I solved it using redirects.

Go take a look at this question I posted

You could just redirect all requests to a 404 or a blank page.

share|improve this answer

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.