Protect your Rails and Rack apps from bad clients. Rack::Attack lets you easily decide when to allow, block and throttle based on properties of the request. Rack middleware for blocking & throttling abusive requests. Tackling each curious anomaly that threatens your site’s reliability saps developer productivity and happiness. Rack::Attack lets you throttle abusive requests with just a few lines of code. For the security of our users, we have a stricter throttle for login attempts. This makes it very time consuming for attackers to guess users’ passwords. We also use the IPCat ruby library to detect requests from well-known datacenters. Rack::Attack can also track requests without blocking them. We rely on Rack::Attack to let developers quickly track and throttle requests. It helps keep our site reliable, so we can spend more energy building better features. We’re glad to make it publicly available to the open-source community.

Features

  • Limit the number of requests that can be made per IP address
  • Rack::Attack can also track requests without blocking them
  • Name your custom blocklist and make your ruby-block argument return a truthy value if you want the request to be blocked
  • Block all requests from misbehaving clients
  • Throttle state is stored in a configurable cache
  • Name your custom throttle

Project Samples

Project Activity

See All Activity >

Categories

Security

License

MIT License

Follow Rack::Attack

Rack::Attack Web Site

You Might Also Like
One Platform. Total IT Insight. Start with PRTG Now Icon
One Platform. Total IT Insight. Start with PRTG Now

Rely on a single source of truth. PRTG unifies monitoring for all your systems, apps, and services.

Why settle for fragmented monitoring? PRTG consolidates everything - servers, VMs, network devices, cloud services, and more, into one powerful platform. Get real-time status, customizable alerts, and deep analytics to drive smarter decisions. Designed for complex environments, PRTG scales with your needs, supports team collaboration, and helps you prevent outages before they impact users. Take control of your IT landscape and deliver the uptime your business requires.
Start Your Free PRTG Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rack::Attack!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Security Software

Registered

2021-11-04