CloudPanel: server and site security

In the examples 203.0.113.10 is your server address and my-site.com is your domain. The server address and panel password are in the e-mail with your credentials.

Firewall

"Admin Area" → "Security" → "Firewall". Only allowed ports are open. After installation:

PortPurposeRecommendation
22SSH, SFTPrestrict to your IP
80HTTPkeep open
443HTTPSkeep open
8443panelrestrict to your IP or Basic Auth
Firewall rules
Firewall rules

Add a rule

  1. Click "Add Rule".
  2. Type: a predefined port or "custom" with a range.
  3. Source: "0.0.0.0/0" (everyone) or an address, e.g. 198.51.100.7.
  4. Click "Add Rule".
Rule form
Rule form

Do not delete the 80 and 443 rules. Do not close port 22 for your own address. Lost access — contact support.

Site protection

Site → "Security" tab.

"Security" tab
"Security" tab
  • IP blocking: "Add IP". An IPv4 or IPv6 address.
  • Bot blocking: "Add Bot". A name from the User-Agent, e.g. AhrefsBot. Do not block Google bots.
  • Basic Auth: a password on the whole site. For a site under development. "Whitelisted IPs" — addresses without a password.
  • Cloudflare only: blocks requests to the server that bypass Cloudflare.

Users and updates

Every employee gets their own account (Panel users) and two-factor authentication. Do not share the admin password.

The panel and the system are updated by support. Site plugins and themes are updated by you.