gauge/config/initializers/rack_attack.rb

6 lines
163 B
Ruby

require 'net/http'
File.read(Rails.root.join('config', 'rack_attack_blocklist.txt')).split("\n").each do |blocked_ip|
Rack::Attack.blocklist_ip(blocked_ip)
end