mirror of https://gitlab.com/bashrc2/epicyon
Use blocked cache
parent
2e9d1c93d9
commit
67ce8e7ece
|
@ -494,7 +494,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.blockedCacheLastUpdated,
|
self.server.blockedCacheLastUpdated,
|
||||||
self.server.blockedCacheUpdateSecs)
|
self.server.blockedCacheUpdateSecs)
|
||||||
|
|
||||||
blockedUA = isBlockedDomain(self.server.baseDir, agentDomain)
|
blockedUA = isBlockedDomain(self.server.baseDir, agentDomain,
|
||||||
|
self.server.blockedCache)
|
||||||
# if self.server.debug:
|
# if self.server.debug:
|
||||||
if blockedUA:
|
if blockedUA:
|
||||||
print('Blocked User agent: ' + agentDomain)
|
print('Blocked User agent: ' + agentDomain)
|
||||||
|
@ -1226,7 +1227,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.blockedCacheLastUpdated,
|
self.server.blockedCacheLastUpdated,
|
||||||
self.server.blockedCacheUpdateSecs)
|
self.server.blockedCacheUpdateSecs)
|
||||||
|
|
||||||
if isBlockedDomain(self.server.baseDir, messageDomain):
|
if isBlockedDomain(self.server.baseDir, messageDomain,
|
||||||
|
self.server.blockedCache):
|
||||||
print('POST from blocked domain ' + messageDomain)
|
print('POST from blocked domain ' + messageDomain)
|
||||||
self._400()
|
self._400()
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
|
|
Loading…
Reference in New Issue