# Email Blacklist Checker – Bulk DNSBL Lookup for Domains & IPs (`gazidev/email-blacklist-checker`) Actor

Check domains, emails and IPv4 addresses against DNS blocklists (DNSBL/RBL): DroneBL, UCEPROTECT, Backscatterer, 0spam, PSBL. Resolves each domain's MX, SPF ip4 and A IPs, returns codes, TXT reasons and delist links. $2 per 1,000 targets.

- **URL**: https://apify.com/gazidev/email-blacklist-checker.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 target checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Email Blacklist Checker – Bulk DNSBL Lookup for Domains & IPs

**Check thousands of domains, email addresses and IPv4 addresses against DNS blocklists (DNSBL / RBL) in one run.** For a domain, the Actor finds the IPs that matter for email: the **mail servers (MX)**, the single **`ip4:` addresses in the SPF record** (your sending servers) and the **website A record**. It then checks each IP on every selected blocklist. You get one row per target with **listed yes/no, which lists, return codes, the list's TXT reason and a delist / lookup link**.

**$2 per 1,000 targets** (one target = one domain, email or IP, up to 5 IPs checked). Targets that no list answered are free.

> **Honest scope:** this is a partial blacklist check. It only uses blocklists whose published terms allow commercial use (see below). **Spamhaus, Barracuda, SpamCop, SpamRATS, SURBL and URIBL are not included**, because their terms require a paid feed, registration, or do not clearly allow commercial queries. A "CLEAN" result means "not listed on the lists checked here", not "not listed anywhere".

### Which blocklists are checked?

| List | Zone | What it lists | Default |
|---|---|---|---|
| DroneBL | `dnsbl.dronebl.org` | Botnet drones, open proxies, compromised hosts, brute-force sources (with a meaning for each return code) | on |
| UCEPROTECT Level 1 | `dnsbl-1.uceprotect.net` | Single IPs that hit UCEPROTECT spam traps | on |
| Backscatterer.org | `ips.backscatterer.org` | Servers that send backscatter (bounces / auto-replies to forged senders) | on |
| 0spam main list | `bl.0spam.org` | IPs seen sending spam to 0spam traps | on |
| 0spam RBL | `rbl.0spam.org` | IPs that sent spam in the last 24 hours (expires automatically) | on |
| PSBL | `psbl.surriel.com` | IPs that sent mail to spam traps and are not known mail servers | on |
| UCEPROTECT Level 2 | `dnsbl-2.uceprotect.net` | Whole allocations around Level-1 IPs | off (network-level) |
| UCEPROTECT Level 3 | `dnsbl-3.uceprotect.net` | Whole provider ASNs (lists Google, big clouds…) | off (network-level) |
| 0spam NBL | `nbl.0spam.org` | Class-C networks that ignore abuse reports | off (network-level) |

The network-level lists also list innocent neighbours of spammers. Their listings are marked `"scope": "network"` in the output so you can tell them apart from real IP listings.

### How it works

1. Inputs are cleaned: URLs become host names, emails become their domain, duplicates are removed. Private, reserved and IPv6 addresses get a free error row (the included lists cover public IPv4 only).
2. For each domain: up to 3 MX hosts → their IPv4 addresses, single `ip4:` entries of the SPF record, and the A record. Up to 5 IPs per domain by default (`maxIpsPerDomain`, max 20). SPF CIDR ranges and `include:` providers are listed but not expanded.
3. At the start of the run, every list is tested with its RFC 5782 test entry (`127.0.0.2`). If the normal resolver gets no valid answer, the list's own authoritative name servers are tried. A list that fails both is reported as unavailable and its answers are `unknown`.
4. Each IP is checked on every selected list, **at most 10 queries per second per list**, and results are cached per IP for the whole run (shared mail servers such as Google's are checked once).
5. Refusal answers (`127.255.255.x`), timeouts and answers outside `127.0.0.0/8` are reported as `unknown`, never as a listing.

### Use cases

- **Cold-email and deliverability agencies:** check every client sending domain and dedicated IP before a campaign, or schedule a daily run and filter `status = LISTED`.
- **Hosting and ESP abuse desks:** bulk-check your customers' outbound IPs.
- **Lead and vendor vetting:** see whether a domain's mail servers are on botnet or spam-trap lists.
- **Incident follow-up:** after a compromised account, check the IP every day until it drops off the lists, using the delist links in the output.

### Input example

```json
{
  "targets": ["apify.com", "jane@example.org", "203.0.113.25"],
  "lists": ["dronebl", "uceprotect-1", "backscatterer", "0spam", "0spam-rbl", "psbl"],
  "checkMx": true,
  "checkSpf": true,
  "checkA": true,
  "maxIpsPerDomain": 5,
  "fetchReasons": true
}
```

### Output example

One row per target (shortened):

```json
{
  "input": "8.8.8.8",
  "target": "8.8.8.8",
  "targetType": "ip",
  "status": "LISTED",
  "listed": true,
  "listedCount": 1,
  "listedOn": ["UCEPROTECT Level 3 (ASN) (8.8.8.8)"],
  "ipsChecked": 1,
  "unknownLookups": 0,
  "ips": [{
    "ip": "8.8.8.8",
    "sources": ["input"],
    "listed": true,
    "listings": [{
      "list": "UCEPROTECT Level 3 (ASN)",
      "zone": "dnsbl-3.uceprotect.net",
      "scope": "network",
      "code": "127.0.0.2",
      "reason": "Your ISP GOOGLE, US/AS15169 is UCEPROTECT-Level3 listed because of a spamscore of 53.5. ...",
      "delistUrl": "https://www.uceprotect.net/en/rblcheck.php?ipr=8.8.8.8"
    }],
    "notListedOn": ["DroneBL", "UCEPROTECT Level 1", "Backscatterer.org", "0spam (main list)", "0spam RBL (realtime)", "PSBL (Passive Spam Block List)"],
    "unknownOn": []
  }],
  "error": null,
  "checkedAt": "2026-11-20T17:02:26+00:00"
}
```

(This example used the opt-in Level 3 list; with the default lists 8.8.8.8 is clean.) Domain rows also have `mxHosts` and `spfIp4Ranges`. `status` is one of `LISTED`, `CLEAN`, `UNKNOWN` (no list answered, free), `NO_IPS` (domain has no public IPv4, free), `INVALID_INPUT` (free) or `ERROR` (free). A run summary with the lists used and how each was queried is saved as `OUTPUT` in the key-value store.

### Pricing

Pay per event:

| Event | Price | When |
|---|---|---|
| Actor start | $0.00005 | Once per run |
| Target checked | **$0.002** | Per domain, email or IP where at least one blocklist answered (listed or clean) |

**$2 per 1,000 targets.** Free: invalid inputs, private/IPv6 addresses, duplicates, domains without public IPv4 addresses, and targets where every list refused, timed out or was unavailable. The run stops cleanly when your maximum total charge is reached.

| Actor (Store, Nov 2026) | Price per target |
|---|---|
| trovevault/email-domain-blacklist-checker | $0.0015 + $0.001 per run |
| **This Actor** | **$0.002** |
| unrivaled_fortress blacklist checker | $0.004 |
| obicodes/blacklist-reputation | $0.005 |
| siteverdict blacklist checker | $0.008 |

Other checkers may include more lists (some of them Spamhaus-based); check whether their use of those lists is licensed for you.

### Related Actors by gazidev

This listing does one thing the siblings do not: **blocklist status**. Combine it with:

- [DNS Lookup – Bulk DNS Records, MX, SPF, DMARC](https://apify.com/gazidev/bulk-dns-lookup) – full DNS records, SPF lookup count, DMARC, DKIM, propagation and change monitoring.
- [SPF, DKIM & DMARC Checker](https://apify.com/gazidev/email-auth-checker) – email authentication score A–F with exact DNS fixes.
- [Bulk IP Lookup](https://apify.com/gazidev/bulk-ip-lookup) – geolocation, ASN, reverse DNS and abuse contacts for the listed IPs.
- [Bulk Email Validator](https://apify.com/gazidev/email-syntax-mx-validator) – syntax, MX, disposable and typo checks for address lists.

### Use with AI agents (Apify MCP)

The Actor works as a tool in the [Apify MCP server](https://mcp.apify.com): an agent can pass `targets` and read `status`, `listedOn` and `delistUrl` from the dataset. Example prompt: *"Check whether the mail servers of these 20 client domains are on any blocklist and give me the delist links."*

### FAQ

**Why is Spamhaus not included?** Spamhaus' free public mirrors are for non-commercial, low-volume use; commercial use needs their paid Data Query Service. The same applies (paid feed, registration or no clear commercial permission) to Barracuda, SpamCop, SpamRATS, SURBL and URIBL. If you have your own Spamhaus DQS key, query it directly.

**What does `unknown` mean?** The list did not give a usable answer for that IP: it refused the query (`127.255.255.x`), timed out, or was unavailable from the run. Unknown answers are never counted as listings, and a target where every answer is unknown is free.

**Does it check IPv6 or domain (URI) blocklists?** No. The included lists are IPv4 lists. IPv6 inputs get a free error row.

**Is it the same IP that sends my email?** MX hosts receive mail; many small organisations also send through them, but if you use Google Workspace, Microsoft 365 or an ESP, your mail goes out through their shared IPs (listed in SPF `include:`). Put your dedicated sending IPs in the input directly for the most useful check.

**How do I get delisted?** Follow `delistUrl` for each listing and fix the cause first (compromised account, open relay, bad list). Each operator has its own removal policy; 0spam RBL entries expire within 24 hours after the spam stops.

**Is it polite to the list operators?** Yes: at most 10 queries per second per list, one cached answer per IP per run, and an honest DNS client. The lists' terms are quoted in the Actor's PRICING notes.

### Data sources and terms

- **DroneBL** (dronebl.org): "You may use the DroneBL DNSBL service free of charge for both commercial and non-commercial purposes."
- **UCEPROTECT** and **Backscatterer.org** (uceprotect.net, backscatterer.org): data © UCEPROTECT-Network, published under their licence: "Permission to use, copy, modify, and/or distribute this data for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies." Provided "as is", without warranty.
- **0spam** (0spam.org): "We provide unlimited free dns queries for private or commercial use including ESPs & ISPs" (up to 4,000 requests per 5 seconds).
- **PSBL** (psbl.org): "Anybody is free to use PSBL."

Listings are decided by the list operators, not by this Actor. Results are provided as is; a listing is not proof of wrongdoing.

# Actor input Schema

## `targets` (type: `array`):

One per line. For a domain (or the domain of an email address) the Actor checks the IPs of its mail servers (MX), the single `ip4:` addresses in its SPF record and its A record. IPv4 addresses are checked directly. Duplicates are skipped; invalid, private and IPv6 entries get a free error row.

## `lists` (type: `array`):

Which DNS blocklists to query. Only lists whose published terms allow commercial use are offered. The three network/ASN-level lists are off by default because they also list innocent neighbours of spammers.

## `checkMx` (type: `boolean`):

Resolve up to 3 MX hosts of each domain and check their IPv4 addresses.

## `checkSpf` (type: `boolean`):

Check single `ip4:` addresses listed in the domain's SPF record (your sending servers). CIDR ranges and `include:` providers are listed in the output but not expanded.

## `checkA` (type: `boolean`):

Check the IPv4 addresses of the domain itself.

## `maxIpsPerDomain` (type: `integer`):

Cap on IPs checked per domain (MX first, then SPF, then A). The price is per target, not per IP.

## `fetchReasons` (type: `boolean`):

For every listing, also read the list's TXT record (reason text, often with a link).

## `maxConcurrency` (type: `integer`):

How many targets are processed at once. Each blocklist is always limited to 10 queries per second, and answers are cached per IP for the run.

## `timeoutSecs` (type: `integer`):

Timeout for one DNS query. A list that does not answer in time counts as `unknown` for that IP.

## `maxItems` (type: `integer`):

Optional cap on how many targets from the list are checked.

## Actor input object example

```json
{
  "targets": [
    "apify.com",
    "gmail.com",
    "8.8.8.8"
  ],
  "lists": [
    "dronebl",
    "uceprotect-1",
    "backscatterer",
    "0spam",
    "0spam-rbl",
    "psbl"
  ],
  "checkMx": true,
  "checkSpf": true,
  "checkA": true,
  "maxIpsPerDomain": 5,
  "fetchReasons": true,
  "maxConcurrency": 10,
  "timeoutSecs": 6
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "targets": [
        "apify.com",
        "gmail.com",
        "8.8.8.8"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/email-blacklist-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "targets": [
        "apify.com",
        "gmail.com",
        "8.8.8.8",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/email-blacklist-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "targets": [
    "apify.com",
    "gmail.com",
    "8.8.8.8"
  ]
}' |
apify call gazidev/email-blacklist-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/email-blacklist-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GvRY2jOyKV2pYkgKN/builds/DQupjol0QfCg2p4Qq/openapi.json
