2024-09-13 19:13:40 +03:00
|
|
|
require 'net/http'
|
2023-09-22 12:04:41 +03:00
|
|
|
|
2024-09-13 19:13:40 +03:00
|
|
|
File.read(Rails.root.join('config', 'rack_attack_blocklist.txt')).split("\n").each do |blocked_ip|
|
|
|
|
Rack::Attack.blocklist_ip(blocked_ip)
|
2023-09-22 12:04:41 +03:00
|
|
|
end
|