Skip to content

Commit

Permalink
Add blocklist_ip to RackAttack
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Jan 30, 2024
1 parent 2a54c41 commit efd7f49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
request.ip
end
end

Rack::Attack.blocklist_ip(ENV['BLOCKED_IPS'])
end

__END__
Expand Down

0 comments on commit efd7f49

Please sign in to comment.