How can I deny HTTP access to my droplet?

Posted July 11, 2013 5.3k views
I have my droplet IP, and when I put it in the browser my default site is displayed. Can I avoid this?

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.

Submit an Answer
5 answers
Is it just the default site you don't want shown? Are there other sites on the box?
Yes, there are other sites. I just want to avoid access with the IP.

I want access to,,, ...
I want deny access to IP (in this moment this redirect to "").

What's the contents of /etc/nginx/sites-enabled?
daniloef, create a file called in /etc/nginx/sites-enabled:

server {
return 444;

Make sure you replace with your actual IP address.