Report this

What is the reason for this report?

Avoid another domain pointing to my droplet?

Posted on 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!



This textbox defaults to using Markdown to format your 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.

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.

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>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.