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!
You don’t have power over Domains that are not under your configuration. It would be strange to have a domain being pointed at your Droplet as it shouldn’t work, there would be no Nginx config file for it and thus your Droplet wouldn’t know how to load it.
Can you please explain a little bit more about the situation in order to help you out properly? Thanks and looking forward to your reply!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.