awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
rack avatar

rack/rack-attack

0
View on GitHub↗
5,746 星标·344 分支·Ruby·MIT·3 次浏览

Rack Attack

Rack-attack 是一个用于 Rack 接口的中间件,提供速率限制和请求过滤功能。它提供了一套用于限制 HTTP 请求和维护 IP 地址黑名单的系统,以保护应用程序免受恶意流量和拒绝服务攻击。

该项目通过识别并拒绝来自被封禁客户端或滥用 IP 地址的请求,实现了应用层的 DDoS 防御和 API 速率限制管理。它允许定义白名单以绕过过滤器,并使用自定义逻辑来确定是否应封禁或限制某个客户端。

该工具涵盖了全面的流量管理功能,包括自动封禁客户端、指数退避策略以及定义自定义拒绝响应的能力。它还包含用于监控请求模式的仪表化功能,并支持外部缓存后端以在分布式应用实例间同步状态。

Features

  • Request Rate Limiting - Controls the number of requests a client can make within a specific timeframe to prevent system overload.
  • Request Interception Middleware - Intercepts incoming HTTP requests in a middleware pipeline to evaluate security rules before application processing.
  • External State Stores - Integrates with external state stores to maintain ban records and request counts across distributed instances.
  • Distributed Rate Limit Stores - Provides external cache backend integration to synchronize rate limiting state across distributed application instances.
  • Traffic Throttling - Limits request rates based on unique identifiers to prevent system overload and mitigate DoS attacks.
  • Automated IP Banning - Automatically blocks clients for a set duration after they exceed thresholds for forbidden requests or failures.
  • Malicious Traffic Blocking - Identifies and rejects requests from banned IP addresses or abusive clients before they reach application logic.
  • IP Blocking Middleware - Ships middleware that rejects traffic from forbidden IP addresses and subnets to protect the application.
  • Predicate-Based Request Filtering - Evaluates incoming requests against custom truthy logic blocks to determine safelisting, blocking, or throttling.
  • IP-Based Rate Limiting - Tracks request frequency using unique identifiers like IP addresses to apply granular per-user quotas.
  • Middleware Rate Limiters - Provides a middleware layer for the Rack interface to throttle HTTP requests and block abusive clients.
  • IP Address Blocklists - Maintains blocklists to identify and reject traffic from specific banned IP addresses.
  • API Rate Limiting - Provides tools for managing API request quotas and communicating limits via standard HTTP headers.
  • Rack Request Filters - Implements a filtering mechanism for Rack applications to evaluate requests against security rules and safelists.
  • Quota Status Headers - Implements HTTP response headers that communicate remaining request quotas and retry delays to API clients.
  • Throttled Response Customization - Allows defining custom HTTP response objects, status codes, and headers for blocklisted or throttled requests.
  • DDoS Protections - Protects Rack-based web applications from DDoS attacks by managing request rates and blocking abusive clients.
  • Request Safelisting - Permits trusted clients or specific requests to bypass all security filters and rate limits.
  • Layered Throttle Compositions - Implements layered throttle composition to apply multiple time-window limits for exponential backoff strategies.
  • Server-Side Backoff Enforcement - Implements layered throttles that progressively increase the wait time between requests for abusive clients.
  • Pipeline Short-Circuiting - Immediately returns custom HTTP responses when a request matches a blocklist, terminating the pipeline early.

Star 历史

rack/rack-attack 的 Star 历史图表rack/rack-attack 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Rack Attack 的开源替代方案

相似的开源项目,按与 Rack Attack 的功能重合度排序。
  • kickstarter/rack-attackkickstarter 的头像

    kickstarter/rack-attack

    5,744在 GitHub 上查看↗

    This project is a Rack middleware rate limiter and application layer firewall for Ruby web applications. It serves as a security layer to throttle and block HTTP requests based on custom rules, protecting web servers from abusive traffic. The system provides capabilities for IP blocking and the banning of malicious clients. It implements request safelisting to bypass restrictions for trusted users and uses time-windowed rate limiting to control request frequency. The middleware covers traffic management and monitoring, including the ability to track request patterns and instrument traffic ev

    Ruby
    在 GitHub 上查看↗5,744
  • mitchellkrogza/nginx-ultimate-bad-bot-blockermitchellkrogza 的头像

    mitchellkrogza/nginx-ultimate-bad-bot-blocker

    4,750在 GitHub 上查看↗

    This project is a collection of configuration files and scripts serving as a bot blocker and security middleware for Nginx. It functions as an automated blocklist manager that filters malicious user-agents and IP addresses to mitigate vulnerability scanning, login brute-forcing, and DDoS attacks. The system distinguishes itself by automating the maintenance of security rules, downloading updated bot definitions and reloading the server on a schedule. It also includes a search engine spam filter capable of generating robots.txt files and link disavow lists to prevent malicious domains from imp

    Shelladwarebot-blockerbots
    在 GitHub 上查看↗4,750
  • express-rate-limit/express-rate-limitexpress-rate-limit 的头像

    express-rate-limit/express-rate-limit

    3,265在 GitHub 上查看↗

    This project is a middleware for the Express web framework designed to restrict request frequency and protect server capacity. It functions as a traffic throttler that intercepts incoming requests to evaluate and enforce limits based on client identity within defined time windows. The system distinguishes itself through a pluggable data store pattern that allows for distributed rate limiting. By delegating hit count storage to external databases, it ensures consistent request tracking across multiple server instances and maintains state across process restarts. The library provides comprehen

    TypeScriptapiexpressexpress-js
    在 GitHub 上查看↗3,265
  • loveshell/ngx_lua_wafloveshell 的头像

    loveshell/ngx_lua_waf

    4,025在 GitHub 上查看↗

    ngxluawaf is an OpenResty web application firewall that uses Lua to filter malicious HTTP requests and block web attacks. It operates as a programmable request filter and IP access controller for Nginx, providing a security layer to identify and block unauthorized scanners, fuzzing attempts, and abnormal network requests. The project includes capabilities for HTTP layer 7 DDoS mitigation by restricting request frequency per IP address. It further secures the environment by restricting access to sensitive archives and blocking script execution in upload directories to prevent data leakage.

    Lua
    在 GitHub 上查看↗4,025
查看 Rack Attack 的所有 30 个替代方案→

常见问题解答

rack/rack-attack 是做什么的?

Rack-attack 是一个用于 Rack 接口的中间件,提供速率限制和请求过滤功能。它提供了一套用于限制 HTTP 请求和维护 IP 地址黑名单的系统,以保护应用程序免受恶意流量和拒绝服务攻击。

rack/rack-attack 的主要功能有哪些?

rack/rack-attack 的主要功能包括:Request Rate Limiting, Request Interception Middleware, External State Stores, Distributed Rate Limit Stores, Traffic Throttling, Automated IP Banning, Malicious Traffic Blocking, IP Blocking Middleware。

rack/rack-attack 有哪些开源替代品?

rack/rack-attack 的开源替代品包括: kickstarter/rack-attack — This project is a Rack middleware rate limiter and application layer firewall for Ruby web applications. It serves as… mitchellkrogza/nginx-ultimate-bad-bot-blocker — This project is a collection of configuration files and scripts serving as a bot blocker and security middleware for… express-rate-limit/express-rate-limit — This project is a middleware for the Express web framework designed to restrict request frequency and protect server… loveshell/ngx_lua_waf — ngx_lua_waf is an OpenResty web application firewall that uses Lua to filter malicious HTTP requests and block web… pavel-odintsov/fastnetmon — FastNetMon is a network traffic analyzer and DDoS detection system designed to identify and mitigate distributed… anjoy8/blog.core — Blog.Core is a production-ready backend boilerplate for building enterprise APIs and microservices using ASP.NET Core.…