1

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

David
  • 159
  • 8

2 Answers2

3

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>
gravyface
  • 13,947
  • 16
  • 65
  • 100
1

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.

Kenny Rasschaert
  • 8,925
  • 3
  • 41
  • 58