mirror of https://gitlab.com/bashrc2/epicyon
list
parent
8fe8701414
commit
19194f3d30
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue