cookie-limit: NGINX 模块用于限制恶意 IP 伪造的 Cookie 数量
安装
您可以在任何基于 RHEL 的发行版中安装此模块,包括但不限于:
- RedHat Enterprise Linux 7, 8, 9 和 10
- CentOS 7, 8, 9
- AlmaLinux 8, 9
- Rocky Linux 8, 9
- Amazon Linux 2 和 Amazon Linux 2023
dnf -y install https://extras.getpagespeed.com/release-latest.rpm
dnf -y install nginx-module-cookie-limit
yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install nginx-module-cookie-limit
通过在 /etc/nginx/nginx.conf 顶部添加以下内容来启用该模块:
load_module modules/ngx_http_cookie_limit_req_module.so;
本文档描述了 nginx-module-cookie-limit v1.3,于 2026 年 3 月 03 日发布。
介绍
ngx_cookie_limit_req_module 模块不仅限制 Cookie 的访问速率,还限制恶意 IP 伪造的 Cookie 数量。
捐赠
开发者们不懈努力以改进和开发 ngx_cookie_limit_req_module。为了提供如今的软件,投入了大量的时间,但这是一个极其耗时的过程,并没有经济回报。如果您喜欢使用该软件,请考虑向开发者捐赠,以便他们能花更多时间实施改进。
### 支付宝:

作者
Gandalf zhibu1991@gmail.com
GitHub
您可以在 nginx-module-cookie-limit 的 GitHub 仓库 中找到此模块的其他配置提示和文档。