Files
growstuff/config/initializers
google-labs-jules[bot]andCloCkWeRX 9ebd98de2d Harden Rack::Attack and pagination against aggressive web crawlers
- Configure Allow2Ban in Rack::Attack to ban IPs requesting >500 pages per day for 1 week (7 days).
- Add honeypot route /dont-crawl-me disallowed in robots.txt and configure Fail2Ban in Rack::Attack to ban IPs visiting it for 7 days upon 1 hit.
- Update PhotosController#index to raise ActiveRecord::RecordNotFound when page parameter is out of bounds, returning 404 Not Found to crawlers instead of 200 OK.
- Add request and controller specs for Rack::Attack rules and pagination 404 responses.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
2026-09-16 18:50:30 +12:00
..
2020-01-10 16:50:52 +13:00
2020-01-10 16:50:52 +13:00
2020-01-21 22:26:08 +13:00
2020-01-10 16:50:52 +13:00
2025-09-20 10:15:41 +00:00
2020-01-10 16:50:52 +13:00
2025-09-20 10:15:41 +00:00
2025-08-24 07:03:20 +00:00
2024-01-07 01:57:19 +00:00
2024-01-07 01:57:19 +00:00
2020-01-10 16:50:52 +13:00
2020-01-10 16:50:52 +13:00
2020-01-10 16:50:52 +13:00
2020-01-10 16:50:52 +13:00