From 0b2b4de64e66981182e482f05946864a6d0064e7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Jun 2021 18:50:43 +0100 Subject: [PATCH] Block message --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 28bb4791d..955bebeee 100644 --- a/daemon.py +++ b/daemon.py @@ -463,7 +463,7 @@ class PubServer(BaseHTTPRequestHandler): # is this a web crawler? If so the block it agentStrLower = agentStr.lower() if 'bot/' in agentStrLower or 'bot-' in agentStrLower: - print('Crawler: ' + agentStr) + print('Blocked Crawler: ' + agentStr) return True # get domain name from User-Agent agentDomain = userAgentDomain(agentStr, self.server.debug)