WAF — Web Application Firewall
WAF — Web Application Firewall
A Web Application Firewall inspects every HTTP request before it reaches your website and stops common attacks such as SQL injection, cross-site scripting (XSS) and file inclusion. VinzaPanel's WAF app is the panel front end for ModSecurity v3 with the OWASP Core Rule Set (CRS).
WAF is a premium app: it is included with the plans that include premium apps, and can be bought separately in the Vinza Store on other plans. See Pricing.
Install
- Click Vinza Store in the top bar and open WAF (ModSecurity).
- Click Install. The installer detects your active web server and installs the matching ModSecurity connector plus the OWASP CRS:
libapache2-mod-security2for Apache2, or the ModSecurity module for Nginx. When Nginx runs in front of Apache, the WAF is installed on Apache, the backend that actually handles the requests. - Open Security → WAF (
/apps/waf/).
The WAF starts in Log Only mode (ModSecurity DetectionOnly): attacks are recorded but nothing is blocked yet. phpMyAdmin (/phpmyadmin/) and webmail (the webmail address set in Mail Server) are always kept in log-only mode, because their normal requests contain SQL and HTML that the CRS would read as attacks.

The page has the tabs Overview, Rules & Tuning, Sites & Access, Whitelist, Threat Logs and Config Editor.
Choose the engine mode
On the Overview tab, under Rule Engine Mode, pick the server-wide mode:
| Mode | Effect |
|---|---|
| On (protect) | Requests that cross the anomaly threshold are blocked |
| Log Only | Requests are inspected and logged, never blocked |
| Off (disable) | No inspection |
Some legitimate applications trigger CRS rules (for example rich-text editors that post HTML). Run in Log Only for a while, check the Threat Logs tab for false positives, tune them, and only then switch to On.
Per-site override
The Per-site WAF override card lets you give one domain its own mode — for instance Log Only for a single site that cannot tolerate blocking yet — while every other site keeps the server-wide mode. Use Reset next to a domain to send it back to the server-wide mode. This is managed centrally; no .htaccess is involved.
Tune the rules
On the Rules & Tuning tab:
- CRS Paranoia Level — L1 — Minimal (low false positives, recommended to start), L2 — Standard, L3 — High and L4 — Extreme (maximum protection, high risk of false positives).
- Anomaly Score Threshold — each matching rule adds to a request's score; when the inbound score reaches the threshold, the request is blocked. A lower threshold is stricter and blocks requests sooner.
- OWASP CRS Update — Check looks for the latest Core Rule Set release on GitHub; Update CRS downloads it, verifies it against the published SHA-256, swaps it in and lets the web server's config test decide. If the test fails, the previous rule set is restored. Your paranoia level and threshold are carried over.
Sites & Access
The Sites & Access tab holds the per-site and access controls:
- Rule Exclusions per Site — turn off CRS rules (by id, range or tag) for one site only, optionally only below a path — for example rule 942100 under
/wp-admin/on one domain. Other sites keep the rule. - Country Blocking — block the listed countries, or allow only them, for the whole server or for one site. It uses a local GeoIP country database; if the server has none, use Download DB-IP Country Lite (CC BY 4.0). Requests are refused only in blocking mode, and whitelisted addresses are never blocked.
- Login Brute-Force Limit — count POSTs to login pages per IP address — by default
/wp-login.php,/xmlrpc.php,/administrator/and/user/login; add your own paths, one per line, and block an address that exceeds Max attempts within the time window for the number of minutes you set. A blocked address gets HTTP 429 on every site of the server until the block expires. This also works only in blocking mode.
Sites proxied by Cloudflare can also block countries at Cloudflare itself (Cloudflare app → Access rules → Country).
Fix false positives
On the Whitelist tab:
- Disable Rule (False Positive Tuning) — enter the Rule ID that keeps blocking a legitimate request (you'll find it in the Threat Logs) and a Reason, so you remember later why it was turned off. Re-enable brings it back. This disables the rule on every site; to switch it off for a single site, use a rule exclusion on the Sites & Access tab instead.
- Add IP to WAF Whitelist — an IP or CIDR range with a comment (e.g. Office IP). Whitelisted IPs bypass all ModSecurity inspection, so use this sparingly.

Watch the logs
The Threat Logs tab reads ModSecurity's audit log and shows recent security events (time, source IP, method, URI, rule and message), the top triggered rules and the top attacking IPs. Click Load to fetch them.
The audit log itself is at /var/log/apache2/modsec_audit.log (Apache2) or /var/log/nginx/modsec_audit.log (Nginx).
Advanced: Config Editor
When the guided controls are not enough, the Config Editor tab lets administrators edit modsecurity.conf directly and Save & Reload. A change the web server rejects is undone.
Switching the web server
ModSecurity is installed for one web server. When you switch between Nginx and Apache, the WAF reinstalls ModSecurity for the new web server in the background and notifies the administrators whether it worked. Until then — or if it failed — the page says the WAF is inactive for this web server and offers a Re-enable button.
What website owners see
Hosting users get a read-only WAF page: the effective mode for each of their domains, whether it is overridden, and recent blocked attacks aimed at their domains. All WAF settings stay with administrators.
Uninstalling the WAF app sets the ModSecurity engine to Off rather than leaving a half-configured firewall behind.