mirror of
https://github.com/neocities/neocities.git
synced 2025-07-25 20:08:27 +02:00
limit ip site creation
This commit is contained in:
parent
9140f3b929
commit
15c60cb6a8
2 changed files with 9 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -550,7 +550,7 @@ post '/create' do
|
|||
}.to_json
|
||||
end
|
||||
|
||||
if !black_box_answered || !@site.valid?
|
||||
if !black_box_answered || !@site.valid? || Site.ip_create_limit?(request.ip)
|
||||
flash[:error] = 'There was an unknown error, please try again.'
|
||||
return {result: 'error'}.to_json
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue