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