Lin is Dream
Lin is Dream
May 14, 2025 · Operations

Master Nginx Rate Limiting: Prevent Abuse with limit_req & limit_conn

Learn how to protect your services from abusive traffic and brute‑force attacks by using Nginx's rate‑limiting features—limit_req to control request rates and limit_conn to restrict concurrent connections—complete with configuration examples, explanations of zones, burst handling, custom error pages, and log monitoring.

Traffic Controllimit_connlimit_req
0 likes · 6 min read
Master Nginx Rate Limiting: Prevent Abuse with limit_req & limit_conn
Architecture Digest
Architecture Digest
Apr 14, 2020 · Operations

Nginx Rate Limiting: Token‑Bucket, Leaky‑Bucket Algorithms and Configuration Examples

This article explains the principles of token‑bucket and leaky‑bucket rate‑limiting algorithms, shows how Nginx implements them with the limit_req and limit_conn modules, and provides detailed configuration examples—including burst, nodelay, and custom status codes—to control request rates and concurrent connections.

Leaky BucketRate LimitingToken Bucket
0 likes · 12 min read
Nginx Rate Limiting: Token‑Bucket, Leaky‑Bucket Algorithms and Configuration Examples
Architecture Talk
Architecture Talk
Oct 15, 2018 · Operations

Master Nginx Rate Limiting: Request & Connection Control with Practical Configs

This article explains how to use Nginx’s built‑in limit_req and limit_conn modules to implement request‑rate and connection‑based throttling, covering configuration directives, execution flow, burst handling, delay modes, whitelist setup with geo and map modules, and practical examples for IP and domain limits.

NginxRate Limitinglimit_conn
0 likes · 9 min read
Master Nginx Rate Limiting: Request & Connection Control with Practical Configs
21CTO
21CTO
Jun 14, 2016 · Backend Development

Mastering Nginx Access Layer Rate Limiting: Practical Configurations and Code Samples

This article explains how to implement access‑layer rate limiting in Nginx using built‑in modules, OpenResty Lua extensions, and token‑bucket or leaky‑bucket algorithms, with detailed configuration snippets, execution flow, testing procedures, and log analysis for robust traffic control.

LuaNginxOpenResty
0 likes · 21 min read
Mastering Nginx Access Layer Rate Limiting: Practical Configurations and Code Samples