sbl_check.py
This Python script is designed to check the list of IP addresses or subnet(s) through the spam blacklists (Spamhaus, CBL, SpamCop, SORBS, Barracuda, INPS.de, McAfee, WPBL, BlockList.de, etc.) and output the status of the IP address if it is 'blacklisted'.
Compatible with Python 3.x.
Requires dnsutils system package to be installed + ip_validator module.
How to use:
- Specify 'ips' variable and uncomment the lines in the end of the script.
- Run the script.
- Output will be recorded to output_sbl.log