Updates for 2023

This commit is contained in:
Petko Bordjukov 2023-09-22 12:04:41 +03:00
parent f5bd7b6d09
commit 323a445967
3 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,7 @@ gem 'jbuilder'
gem 'activeresource', github: 'rails/activeresource', require: 'active_resource'
gem 'pry-rails'
gem "rack-attack", "~> 6.7"
# gem 'spreadsheet_architect'

View File

@ -144,6 +144,8 @@ GEM
nio4r (~> 2.0)
racc (1.6.0)
rack (2.2.4)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
rack-test (2.0.2)
rack (>= 1.3)
rails (6.0.5.1)
@ -226,6 +228,7 @@ DEPENDENCIES
pg
pry-rails
puma (< 5)
rack-attack (~> 6.7)
rails (~> 6.0.4)
sass-rails
spring

View File

@ -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