mirror of https://gitlab.com/bashrc2/epicyon
Block message
parent
90d5d04090
commit
0b2b4de64e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue