ModSecurity WAF: Web Application Firewall for Apache/Nginx

Security · 19.04.2026
ModSecurity WAF: Web Application Firewall for Apache/Nginx

ModSecurity is an open-source Web Application Firewall running as an Apache or Nginx module.

Install on Ubuntu/Apache

sudo apt install -y libapache2-mod-security2
sudo a2enmod security2
sudo systemctl restart apache2
⚠️ Start in DetectionOnly mode for 2–4 weeks, study the logs, then switch to active blocking.
← Back to Knowledge Base Ask Support