Someone is pointing their domain to our ip address, essentially cloning our website. After researching I came across that this is not issue with digitalocean or my droplet but rather I’d have to configure my nginx in a way that all traffic from domains other than mine are redirected to 404 or somewhere else.
I am not able to figure out how to do achieve that. Should I use map feature in nginx and if yes how does redirect from domain except mine works?
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.