Add specific rate limits for posting and following (#13172)

This commit is contained in:
Eugen Rochko
2020-03-08 15:17:39 +01:00
committed by GitHub
parent 503eab1c1f
commit 339ce1c4e9
23 changed files with 273 additions and 51 deletions

View File

@ -70,7 +70,6 @@ class Rack::Attack
req.remote_ip if req.post? && req.path == '/api/v1/accounts'
end
# Throttle paging, as it is mainly used for public pages and AP collections
throttle('throttle_authenticated_paging', limit: 300, period: 15.minutes) do |req|
req.authenticated_user_id if req.paging_request?
end

View File

@ -725,7 +725,7 @@ en:
'422':
content: Security verification failed. Are you blocking cookies?
title: Security verification failed
'429': Throttled
'429': Too many requests
'500':
content: We're sorry, but something went wrong on our end.
title: This page is not correct