↑ ↓ select, Enter open, Esc close

Show the Web Application Firewall (ModSecurity) status in Plesk

root@server
plesk bin server_pref --show-web-app-firewall

Prints the server-wide ModSecurity settings, for example whether the rule engine is on, off or in detection-only mode. Useful when forms or uploads are rejected with 403 and you need to find out whether the WAF is behind it.

Note: Which rule actually triggered is recorded in the ModSecurity audit log, usually at /var/log/modsec_audit.log.

Open question before approval: Option --show-web-app-firewall von plesk bin server_pref auf Obsidian 18.0.x bestätigen.

Also searched as

  • is modsecurity enabled plesk
  • plesk waf status
  • plesk show modsecurity rule set

Related one-liners

All in Plesk

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.