31. How to Issue a Free SSL Certificate with Let’s Encrypt
- 
Log in to CyberPanel.
 - 
Navigate to Websites > List Websites.
 - 
Find your domain and click Manage.
 - 
Scroll down and click Issue SSL.
 - 
CyberPanel will issue a free Let’s Encrypt certificate.
 - 
Confirm HTTPS works by visiting your domain using
https://. 
32. Fixing SSL Errors Like HSTS or “NET::ERR_CERT_AUTHORITY_INVALID”
- 
Common Causes:
- 
No SSL issued or expired certificate.
 - 
Browser cache or forced HSTS policy.
 
 - 
 
Fixes:
- 
Reissue SSL in CyberPanel.
 - 
Clear browser cache or use a different browser.
 - 
Ensure domain is pointing correctly to your server.
 
33. Forcing HTTPS Redirection in CyberPanel
- 
Go to Websites > List Websites.
 - 
Click Manage next to your domain.
 - 
Scroll to Rewrite Rules and click Edit.
 - 
Add this rule at the top:
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - 
Save and test your site.
 
34. How to Secure Your CyberPanel Login
- 
Change the default CyberPanel port (8090):
- 
Edit
/usr/local/CyberCP/CyberCP/settings.py. - 
Change the port number and restart CyberPanel.
 
 - 
 - 
Enable firewall rules to restrict access.
 - 
Use strong admin passwords.
 - 
Regularly update CyberPanel.
 
35. Installing and Configuring Fail2Ban in CyberPanel
- 
Install Fail2Ban:
sudo apt install fail2ban - 
Configure jail settings:
- 
Edit
/etc/fail2ban/jail.local. - 
Example for SSH:
[sshd] enabled = true port = ssh filter = sshd logpath = /var/log/auth.log maxretry = 5 
 - 
 - 
Restart Fail2Ban:
sudo systemctl restart fail2ban - 
Use
fail2ban-client statusto monitor. 
36. How to Scan Your Website for Malware
- 
Install malware scanning tools like Maldet or ClamAV:
sudo apt install clamav sudo freshclam sudo clamscan -r /home/ - 
Use CyberPanel’s ImunifyAV (if available on your version).
 - 
Regularly scan files in
/home/domain.com/public_html. 
37. How to Disable Directory Listing in CyberPanel
- 
Go to Websites > List Websites.
 - 
Click Manage next to your domain.
 - 
Scroll to Rewrite Rules and click Edit.
 - 
Add the following line:
Options -Indexes - 
Save changes and refresh your site. Directory contents will now be hidden.