Remove browser access to my droplet via IP address

August 16, 2016 265 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 ?

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.

Have another answer? Share your knowledge.