How to disable direct IP access of my droplet?


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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.