Block message

main
Bob Mottram 2021-06-20 18:50:43 +01:00
parent 90d5d04090
commit 0b2b4de64e
1 changed files with 1 additions and 1 deletions

View File

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