Rate limit requests per logged-in user or logged-out IP

Description

Add Rack::Attack for rate limiting. The gem allows the common use case of IP-based throttling, but it can also work with Devise users.

The "limit" and "period" options should be configurable through ArchiveConfig.

How to test: Use a tool like siege and hammer the staging site. Expect some speed bumps.

Environment

None

Status

Assignee

elzj78 (Elz)

Reporter

redsummernight

Roadmap

Misc
Visitors

Priority

Medium

Affects versions

0.9.254

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure