main
Bob Mottram 2021-10-23 23:58:18 +01:00
parent 8fe8701414
commit 19194f3d30
1 changed files with 2 additions and 2 deletions

View File

@ -521,9 +521,9 @@ class PubServer(BaseHTTPRequestHandler):
"""Should a GET or POST be blocked based upon its user agent?
"""
agentStrLower = agentStr.lower()
defaultAgentBlocks = (
defaultAgentBlocks = [
'fedilist.com'
)
]
for uaBlock in defaultAgentBlocks:
if uaBlock in agentStrLower:
print('Blocked User agent: ' + uaBlock)