diff options
Diffstat (limited to 'modules/dnsbl/lists.py')
| -rw-r--r-- | modules/dnsbl/lists.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/dnsbl/lists.py b/modules/dnsbl/lists.py index 0ae6a1b6..ce2b6404 100644 --- a/modules/dnsbl/lists.py +++ b/modules/dnsbl/lists.py @@ -18,21 +18,32 @@ class ZenSpamhaus(DNSBL): return "exploits" class EFNetRBL(DNSBL): hostname = "rbl.efnetrbl.org" - SPAMTRAP = ["2", "3"] def process(self, result): result = result.rsplit(".", 1)[1] if result == "1": return "proxy" - elif result in self.SPAMTRAP: + elif result in ["2", "3"]: return "spamtap" elif result == "4": return "tor" elif result == "5": return "flooding" +class DroneBL(DNSBL): + hostname = "dnsbl.dronebl.org" + def process(self, result): + result = result.rsplit(".", 1)[1] + if result in ["8", "9", "10", "11", "14"]: + return "proxy" + elif result in ["3", "6", "7"]: + return "flooding" + elif result in ["12", "13", "15", "16"]: + return "exploits" + DEFAULT_LISTS = [ ZenSpamhaus(), - EFNetRBL() + EFNetRBL(), + DroneBL() ] def default_lists(): |
