How to install libmodsecurity on Amazon Linux
A library that loads/interprets rules written in the ModSecurity SecRules
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| Amazon Linux 2023 | ✓ | — | ✓ | 3.0.16 |
| Amazon Linux 2012.03 | — | — | ✓ | 3.0.4 |
| Amazon Linux 2 | ✓ | — | ✓ | 3.0.16 |
Description
Libmodsecurity is one component of the ModSecurity v3 project. The library serves as an interface to ModSecurity Connectors taking in web traffic and applying traditional ModSecurity processing. In general, it provides the capability to load/interpret rules written in the ModSecurity SecRules format and apply them to HTTP content provided by your application via Connectors.
Built for Amazon Linux.
Install
libmodsecurity on Amazon Linux 2, 2012.03, 2023
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install libmodsecurity
Package downloads require an active GetPageSpeed subscription — one repository for libmodsecurity and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install libmodsecurity on Amazon Linux?
Add the GetPageSpeed repository, then install the libmodsecurity package with your system package manager.
Which Amazon Linux versions is libmodsecurity available for?
libmodsecurity is available for Amazon Linux 2, 2012.03, 2023.