Whitelist Only Access to CyperPanel

I want to block all IPs except those you whitelisted to access Cyberpanel. How can I do that?
Also can I do the same in my ubuntu 20.04 server with root access?

Welcome @Vihamsi Happy you are here


Install csf here https://SERVER_URL:8090/firewall/csf

Run csf -a SERVER_URL e.g. csf -a

Deny all ip addresses from accessing the server

csf -d -d in "block all inbound connections permanently"
csf -r