How to disable direct IP access of my droplet?

Posted October 1, 2020 1.5k views
OpenLiteSpeed WordPress 1-ClickUbuntu 20.04


I have deployed a WordPress site using the Openlitespeed WordPress one-click installer. The problem is that it is accessible by directly putting in the IP address of the droplet. Is there any way I can disable this?

I found some solutions but they are for Apache or Nginx, none of them cover Openlitespeed. I am a newbie with managing and doing things on Ubuntu. Please help.

Thank you

edited by bobbyiliev

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