merge-requests/30/head
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? """Should a GET or POST be blocked based upon its user agent?
""" """
agentStrLower = agentStr.lower() agentStrLower = agentStr.lower()
defaultAgentBlocks = ( defaultAgentBlocks = [
'fedilist.com' 'fedilist.com'
) ]
for uaBlock in defaultAgentBlocks: for uaBlock in defaultAgentBlocks:
if uaBlock in agentStrLower: if uaBlock in agentStrLower:
print('Blocked User agent: ' + uaBlock) print('Blocked User agent: ' + uaBlock)