CloudPanel does not include ModSecurity by default, as it’s designed to be lightweight and performance-focused. However, if you need Web Application Firewall (WAF) capabilities like ModSecurity, you can install and configure it manually.
What is ModSecurity?
ModSecurity is an open-source WAF (Web Application Firewall) that protects your applications from common threats like:
SQL injection
Cross-site scripting (XSS)
Path traversal
And many more
Can You Use ModSecurity with CloudPanel?
Yes — but it requires manual setup. CloudPanel uses Nginx (not Apache), so you’ll need to install ModSecurity as an Nginx module or use ModSecurity v3 (libmodsecurity).
How to Install ModSecurity with Nginx (CloudPanel)
Important: This process requires advanced knowledge of Linux and may require compiling Nginx from source. Not officially supported by CloudPanel.