modsecurity install guide

Get modsecurity on macOS and Linux Now!

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time ana

modsecurity one-command setup card, platform, for macOS and Linux, 9.8k stars on the project's repository
★ 9.8k stars macOS and Linux

Get modsecurity with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command comes from the project's public source.

PowerShell not published

modsecurity at a glance

  • Installs with a single command — Homebrew.
  • Installs on macOS / Linux.
  • Free and open source, with no paid tier and no account needed.
  • 9.8k stars — an actively used project.

modsecurity doesn't publish a feature list we can quote, so this is what we verified ourselves.

About modsecurity

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time ana

CategoryPlatform
Install methodHomebrew
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedFrom project source
Popularity9.8k stars on the project's public repository

On mobile

modsecurity is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

modsecurity is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.