1

I just found out that flashsale.info is pointing to my server. How do I stop this from happening? Is there anything I can do?

nupac
  • 217
  • 1
  • 3
  • 11

1 Answers1

13

There is nothing you can do to forcibly stop other people from pointing their domains at your server. It may not be malicious; it may be that they have simply made a typo in their zone file, or that they have forgotten to delete an old entry. So the first thing to do is to simply contact them and politely inform them of the error.

If they don't respond appropriately, the simplest solution is to create a virtual host or a redirect rule that will simply respond with an error message to anyone requesting the wrong hostname.

Since you haven't specified what web server software you're using, I can't help with any configuration options. If it's apache, you should start by reading this explanation of how apache handles hostnames and the canonical answer about how rewrites work in apache.

Jenny D
  • 27,358
  • 21
  • 74
  • 110
  • Thanks for pointing me in the right direction. I'm using nginx and have configured it successfully. Thank you – nupac Aug 15 '16 at 16:06