mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: never block /srv/status which is used for health checks
This route is also very cheap so blocking it is not required It is still rate limited and so on elsewhere
This commit is contained in:
@@ -25,6 +25,7 @@ module Middleware
|
||||
@request.get? &&
|
||||
!@request.xhr? &&
|
||||
!@request.path.ends_with?('robots.txt') &&
|
||||
!@request.path.ends_with?('srv/status') &&
|
||||
CrawlerDetection.is_blocked_crawler?(@request.env['HTTP_USER_AGENT'])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user