Updates for 2023
This commit is contained in:
parent
f5bd7b6d09
commit
323a445967
1
Gemfile
1
Gemfile
|
@ -14,6 +14,7 @@ gem 'jbuilder'
|
||||||
gem 'activeresource', github: 'rails/activeresource', require: 'active_resource'
|
gem 'activeresource', github: 'rails/activeresource', require: 'active_resource'
|
||||||
|
|
||||||
gem 'pry-rails'
|
gem 'pry-rails'
|
||||||
|
gem "rack-attack", "~> 6.7"
|
||||||
|
|
||||||
# gem 'spreadsheet_architect'
|
# gem 'spreadsheet_architect'
|
||||||
|
|
||||||
|
|
|
@ -144,6 +144,8 @@ GEM
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
racc (1.6.0)
|
racc (1.6.0)
|
||||||
rack (2.2.4)
|
rack (2.2.4)
|
||||||
|
rack-attack (6.7.0)
|
||||||
|
rack (>= 1.0, < 4)
|
||||||
rack-test (2.0.2)
|
rack-test (2.0.2)
|
||||||
rack (>= 1.3)
|
rack (>= 1.3)
|
||||||
rails (6.0.5.1)
|
rails (6.0.5.1)
|
||||||
|
@ -226,6 +228,7 @@ DEPENDENCIES
|
||||||
pg
|
pg
|
||||||
pry-rails
|
pry-rails
|
||||||
puma (< 5)
|
puma (< 5)
|
||||||
|
rack-attack (~> 6.7)
|
||||||
rails (~> 6.0.4)
|
rails (~> 6.0.4)
|
||||||
sass-rails
|
sass-rails
|
||||||
spring
|
spring
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
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
|
Loading…
Reference in New Issue