Here’s a Python script that checks for the presence of an IP address in various spam databases using the ipaddress module to validate the IP address and requests module to make HTTP requests:

import requests
import ipaddress

def check_spam(ip_address):
    # Validate the IP address
    except ValueError:
        print("Invalid IP address format")

    # List of spam databases to check
    spam_databases = [

    # Check each database for the IP address
    for db in spam_databases:
        query = ip_address + '.' + db
            response = requests.get("http://"+query)
            if response.text.startswith("127.0.0"):
                print(f"{ip_address} found in {db}")
                print(f"{ip_address} not found in {db}")
        except requests.RequestException as e:
            print(f"Error checking {ip_address} in {db}: {e}")

# Example usage
ip_to_check = "123.456.789.10"  # Replace this with the IP address you want to check

This script takes an IP address as input, validates its format, and then checks the IP address against several spam databases using DNSBL (DNS Blacklist) lookups. If the IP address is found in any of the databases, it will print a message indicating where it was found. Otherwise, it will print a message indicating that the IP address was not found in a particular database.

Comments (0)

There are no comments here yet, you can be the first!

Leave a Reply

Your email address will not be published. Required fields are marked *

Choose and Buy Proxy

Datacenter Proxies

Rotating Proxies

UDP Proxies

Trusted By 10000+ Customers Worldwide

Proxy Customer
Proxy Customer
Proxy Customer
Proxy Customer
Proxy Customer
Proxy Customer