Remove browser access to my droplet via IP address

Posted August 16, 2016 3.9k views

I got a secure SSL domain name now and I would like to disable access to my server via the ip address via a browser.

Especially in order to remove access to phpmyadmin without SSL.

How can I do that ?

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
1 answer

If you want zero access to your droplet, and zero access for everyone else to your droplet via web browser, you will need to block port 80 and port 443 for good measure. If you are using Ubuntu, you can use UFW to accomplish this.

UFW deny http
UFW deny https

Anything else will require someone else’s help.

If you just want to make sure all traffic is forced to use SSL, you will have to research HTTPS force for your web server.

  • Hum no I just want browser access via IP address to be forbidden.
    Because I have to keep http and https access to my website via my domain name.