gauge/config/initializers/rack_attack.rb

6 lines
161 B
Ruby
Raw Normal View History

2023-09-22 12:04:41 +03:00
require "net/http"
Net::HTTP.get(URI("https://lists.fissionrelays.net/tor/exits.txt")).split("\n").each do |tor_exit|
Rack::Attack.blocklist_ip(tor_exit)
end