Show blocked user agents

main
Bob Mottram 2021-06-20 16:28:23 +01:00
parent 746cc362e6
commit af556dc134
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ class PubServer(BaseHTTPRequestHandler):
return blockedUA
if not agentDomain.startswith(callingDomain):
blockedUA = isBlockedDomain(self.server.baseDir, agentDomain)
if blockedUA and self.server.debug:
# if self.server.debug:
if blockedUA:
print('Blocked User agent: ' + agentDomain)
return blockedUA