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:
Sam
2018-07-18 12:33:06 +10:00
parent 3874d40910
commit 379384ae1e
2 changed files with 18 additions and 7 deletions

View File

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