Question

Avoid another domain pointing to my droplet?

  • Posted March 17, 2014

Hi!, i’ve a droplet with nginx, and casually (in google) i’ve discovered another domain which i’m not owner pointing to my site… any recommends? how can I avoid this? thanks!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

thanks! I’ve avoid this in nginx.conf: <br>server { <br> server_name … <br>… <br> ## Deny illegal Host headers <br> if ($host !~* ^(xxx.com|www.xxx.com)$ ) { <br> return 444; <br> } <br> <br>… <br>

You can’t do anything about that. <br> <br>But you can set up a name based virtual host, telling visitor the domain they visit is invalid or direct them out of you site. <br> <br>If you just want to emphasize your domain just rewrite all url to your own domain.