How to install nginx-module-abuse-guard in Ubuntu 20.04 (focal)

Auto-ban abusive clients by error-response rate

Vendor: GetPageSpeed https://github.com/GetPageSpeed/ngx_abuse_guard

Install

curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb
sudo apt-get install -y /tmp/getpagespeed-release.deb
rm /tmp/getpagespeed-release.deb
echo "deb [signed-by=/etc/apt/keyrings/deb-archive-keyring.gpg] https://extras.getpagespeed.com/ubuntu focal-mainline-early main" | sudo tee /etc/apt/sources.list.d/getpagespeed-mainline-early.list
sudo apt-get update
sudo apt-get install -y nginx-module-abuse-guard

Installing packages requires an active GetPageSpeed subscription. For other releases and channels, use the setup wizard.

Description

NGINX module that watches the rate of error responses (404/403 by default, with opt-in 5xx) each client generates and applies a timed in-process lockout to clients whose traffic is mostly failure. The ban decision is made in the NGINX preaccess phase, before any handler or upstream runs, with a fixed per-client memory footprint independent of the threshold. Optional Redis/Valkey ban replication spans nodes, and compact on-disk snapshots preserve active bans across clean reloads and restarts. No daemon, log shipper, or scripting layer required.

Packages

Package Size Built
nginx-module-abuse-guard_1.31.8+2.1.0-9~gps1+ubuntu2004+mainline_amd64 16 KiB 2026-10-21
nginx-module-abuse-guard_1.31.8+2.1.0-9~gps1+ubuntu2004+mainline_arm64 15 KiB 2026-10-21

Subscribe