# Bulk Domain Security Checker: SPF, DMARC, DKIM, SSL, Headers (`neonronin/domain-security-check`) Actor

Bulk email security and DNS security audit: SPF, DMARC, DKIM, DNSSEC, SSL/TLS and domain expiry, HTTPS and security headers. Each domain gets an A-F grade, 0-100 score, email provider and plain-English fixes, with optional change alerts. Passive, no API keys.

- **URL**: https://apify.com/neonronin/domain-security-check.md
- **Developed by:** [Perry Lucas](https://apify.com/neonronin) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 domain checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Bulk Domain Security Checker: SPF, DMARC, DKIM, SSL and security headers

Paste a list of domains and get an **A-F security grade, a 0-100 score and a ranked to-do list of fixes** for every one of them, with **the exact DNS record or header to paste** for each fix. One run checks email authentication (SPF, DMARC, DKIM, MTA-STS, BIMI), the domain itself (DNSSEC, registration expiry, transfer lock) and website security (SSL/TLS certificate, HTTPS redirect, security headers, CAA), so you don't need a separate DMARC checker, SSL checker, WHOIS lookup and headers checker.

- **Bulk:** check 1 or 10,000 domains in one run. URLs and `www.` are cleaned up for you, duplicates removed.
- **Graded, not just raw DNS:** every domain gets a score, a grade and a one-line summary you can paste into a report or an email.
- **Paste-ready fixes:** each finding says what is wrong and why it matters, and most come with the exact record or header to add, built for the email provider and certificate authority the domain already uses.
- **"Can this domain be spoofed?"** A plain yes / partly / no answer with the reason, for every domain.
- **A sales line for every domain:** one sentence about the most concrete problem, ready for cold outreach.
- **Change tracking:** turn it on and each run tells you what got better or worse since the last one.
- **Passive and safe:** reads public DNS and loads the homepage like a browser. No port scans, no login, no API keys.
- **Fair pricing:** you pay only for domains that were fully checked. Invalid or unreachable domains are free.

### Who uses it

- **MSPs and IT consultants:** run a quick security snapshot before a sales call, or check all client domains every month.
- **Agencies and sales teams:** find prospects with missing DMARC, expiring certificates or no HTTPS, and open with a concrete, fixable problem. Export to CSV and merge with your lead list.
- **Email deliverability work:** spot missing or weak SPF, DMARC `p=none`, missing DKIM and too many SPF lookups across many sender domains.
- **Security and compliance teams:** inventory the email and web posture of every domain your company owns, including parked ones.
- **AI agents and automations:** call it from the Apify API, MCP, Zapier, Make or n8n and act on the `grade` and `findings` fields.

### Sample results

Real output from a run on 10 November 2026:

| Domain | Grade | Score | Spoofable? | Email provider | What it found |
|---|---|---|---|---|---|
| github.com | **A** | 97 | no | Microsoft 365 | MTA-STS not configured, no DNSSEC, SPF soft fail (`~all`) |
| wikipedia.org | **B** | 85 | no | self-hosted | No CSP, no clickjacking protection, no `nosniff`, server version disclosed, no MTA-STS |
| example.com | **C** | 72 | no | none | HTTP does not redirect to HTTPS, no HSTS, DMARC reports not requested, missing security headers |
| expired.badssl.com | **F** | 42 | yes | none | Expired TLS certificate, no DMARC, no SPF |

`expired.badssl.com` is a public test site with a deliberately expired certificate.

The full JSON for these four domains, including every fix record, is in [`examples/sample-output.json`](https://github.com/Limitless-Utilities/auto-biz/blob/main/actors/domain-security-check/examples/sample-output.json).

### What it checks

| Area | Check | Example finding |
|---|---|---|
| Email | MX records | Domain receives no mail (null MX handled) |
| Email | Email provider | Google Workspace, Microsoft 365, Proofpoint, Mimecast, Zoho and more, plus third-party senders found in SPF (SendGrid, Mailchimp, Salesforce, HubSpot...) |
| Email | SPF | Missing, multiple records, `+all` or `?all`, more than 10 DNS lookups **counted through every nested include**, broken includes |
| Email | DMARC | Missing, `p=none` (monitor only), partial `pct`, no `rua` reports; subdomains inherit the parent policy like real mail servers do |
| Email | DKIM | Keys on common selectors (Google Workspace, Microsoft 365, Zoho, Mandrill and more); revoked keys ignored |
| Email | MTA-STS, TLS-RPT, BIMI | Inbound mail can be downgraded to plain text; brand logo (BIMI) published |
| Domain | DNSSEC | Not enabled, or **broken** (the domain fails to resolve for validating resolvers) |
| Domain | Registration (RDAP) | Expired or expiring within 30 or 60 days, registrar, creation date, transfer lock off |
| Web | SSL/TLS certificate | Expired, expiring within 30 or 14 days, untrusted, old TLS version, issuer |
| Web | HTTPS redirect | Plain HTTP is served without redirecting |
| Web | Security headers | HSTS, Content-Security-Policy, X-Frame-Options / `frame-ancestors`, X-Content-Type-Options, Referrer-Policy, Permissions-Policy |
| Web | Information leaks | Server or X-Powered-By version disclosed |
| DNS | CAA | Any certificate authority can issue certificates for the domain |

### How to use it

1. Click **Try for free** (or **Start**).
2. Paste your domains into **Domains**, one per line. Full URLs are fine.
3. Leave both checks on, or turn off email or website checks if you only need one.
4. Click **Start**. Most domains finish in a few seconds.
5. Open **Overview** for grades, spoofing verdicts and sales lines, **Fixes to paste** for one row per issue with its record, or **Full results** for everything. Download as CSV, Excel or JSON.

#### Input example

```json
{
  "domains": ["github.com", "https://www.example.com/pricing", "expired.badssl.com"],
  "checkEmail": true,
  "checkWeb": true,
  "checkDomain": true,
  "trackChanges": false
}
```

#### Output example

One dataset item per domain (shortened; see the [full sample](https://github.com/Limitless-Utilities/auto-biz/blob/main/actors/domain-security-check/examples/sample-output.json)):

```json
{
  "domain": "expired.badssl.com",
  "score": 42,
  "grade": "F",
  "summary": "expired.badssl.com scores 42/100 (grade F). Fix first: tls certificate has expired; no dmarc record.",
  "issueCounts": { "critical": 1, "high": 1, "medium": 1, "low": 0, "info": 3 },
  "spoofable": "yes",
  "spoofingReason": "expired.badssl.com has no DMARC policy, so mail providers have no instruction to block email that fakes it.",
  "salesPitch": "The security certificate on expired.badssl.com has expired, so visitors get a full-page browser warning instead of the website.",
  "findings": [
    {
      "id": "tls-expired",
      "category": "web",
      "severity": "critical",
      "title": "TLS certificate has expired",
      "detail": "Browsers show a security warning. Reason: CERT_HAS_EXPIRED.",
      "fix": "Renew the certificate now and enable automatic renewal."
    },
    {
      "id": "dmarc-missing",
      "category": "email",
      "severity": "high",
      "title": "No DMARC record",
      "detail": "Mail providers have no instruction on what to do with spoofed mail, and you get no reports.",
      "fix": "Start with \"v=DMARC1; p=none; rua=mailto:dmarc@<domain>\", then move to quarantine or reject.",
      "fixRecord": { "type": "DNS TXT", "name": "_dmarc.expired.badssl.com", "value": "v=DMARC1; p=reject;" }
    }
  ],
  "dns": {
    "dnssec": "unsigned",
    "registration": { "domain": "badssl.com", "registrar": "MarkMonitor Inc.", "expiresAt": "2027-04-07T22:09:30Z", "daysLeft": 148, "status": ["client transfer prohibited", "..."] }
  },
  "email": { "mx": [], "provider": null, "spf": null, "spfSenders": [], "dmarc": null, "dkimSelectorsFound": [], "mtaSts": false, "tlsRpt": false, "bimi": false },
  "web": { "reachable": true, "host": "expired.badssl.com", "certificate": { "authorized": false, "issuer": "COMODO CA Limited", "daysLeft": -4230 }, "...": "..." },
  "checkedAt": "2026-11-10T07:14:22.305Z",
  "changes": { "firstCheck": false, "previousScore": 42, "scoreChange": 0, "gradeChanged": false, "newFindings": [], "resolvedFindings": [], "changed": false }
}
```

A Microsoft 365 domain with no SPF record gets `"fixRecord": { "type": "DNS TXT", "name": "acme.com", "value": "v=spf1 include:spf.protection.outlook.com ~all" }`. A missing MTA-STS policy gets both the TXT record and the policy file content listing the domain's own MX hosts.

### Track changes between runs

Turn on **Track changes since the last run** and schedule the Actor (for example weekly). Each result gets a `changes` field with the previous grade, score change, new issues and fixed issues, and the **Changes since last run** tab shows them side by side. Use a different **Monitor name** for each client or domain list to keep their history apart. Pair it with an Apify integration to send changed results to Slack, email or a webhook.

#### Call it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/neonronin~domain-security-check/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["example.com", "github.com"]}'
```

The response is the list of results above, so you can feed it straight into a spreadsheet, CRM or alerting script.

### How the score works

Every domain starts at 100. Each finding subtracts points by severity: critical 35, high 15, medium 8, low 3, info 0. Grades: **A** 90+, **B** 80+, **C** 65+, **D** 50+, **F** below 50. Findings are sorted most severe first, so the top of the list is always what to fix first.

### Pricing

**$0.004 per domain checked**, charged only when a domain is fully checked and graded. 100 domains cost $0.40 and 1,000 domains cost $4. Invalid domains and failed checks are not charged. Apify's free plan credit covers over a thousand checks a month.

### FAQ

**Is this a vulnerability scanner?** No. It only reads public DNS records and loads the homepage once, the same as any visitor or mail server would. It is safe to run on domains you don't own, such as prospects.

**Why does it say "No DKIM key found" when I have DKIM?** DKIM keys live under a selector name that DNS does not list. The Actor tries the common ones; if yours uses a custom selector it is reported as info only and does not lower the score.

**Can I check subdomains?** Yes. Enter `shop.example.com` and the website checks run on that host. Email checks use the name you enter.

**How do I monitor domains over time?** Turn on change tracking, save your input as a task and add a schedule in Apify. See [Track changes between runs](#track-changes-between-runs).

**How is "spoofable" decided?** From the DMARC policy, the same way mail providers decide: `reject` or `quarantine` at 100% means **no**, an enforcing policy on only part of the mail means **partly**, and no DMARC or `p=none` means **yes**.

**Where does the domain expiry come from?** From RDAP, the official successor to WHOIS, run by each domain registry. A few country-code domains don't offer RDAP; for those the registration fields are empty.

**What does a domain that never sends mail need?** An SPF record of `v=spf1 -all`, a DMARC record with `p=reject`, and a null MX. The Actor recognises a null MX and then skips the DKIM and MTA-STS checks, which only matter for domains that receive or send mail.

### Limits

- DKIM can only be found on common selector names (see FAQ).
- The website checks load the homepage over HTTPS and HTTP; sites behind a login or bot wall may show fewer headers.
- Results reflect DNS and HTTP responses at the time of the run.

### Also from Augur

- [Lookalike & Typosquat Domain Finder](https://apify.com/neonronin/lookalike-domain-finder): find registered look-alikes of your domain (typos, homoglyphs, TLD swaps), each risk-scored, with alerts when a new one appears or starts sending mail.

Questions or a check you'd like added? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `domains` (type: `array`):

Domains to check, one per line, such as example.com. Full URLs and www. are accepted and trimmed to the domain. Duplicates are removed.

## `checkEmail` (type: `boolean`):

SPF (with nested lookup count), DMARC, DKIM, MX, email provider, MTA-STS, TLS-RPT and BIMI.

## `checkWeb` (type: `boolean`):

TLS certificate, HTTPS redirect, security headers (HSTS, CSP, X-Frame-Options, Permissions-Policy and more) and CAA.

## `checkDomain` (type: `boolean`):

DNSSEC status and domain registration expiry, registrar and transfer lock (via RDAP).

## `trackChanges` (type: `boolean`):

Save each result and compare it with the previous run of the same monitor. Each result then gets a 'changes' field with score change, new findings and fixed findings. Best used with a schedule.

## `monitorName` (type: `string`):

Keeps separate history for different domain lists, for example one per client. Results are saved in your Apify storage under 'domain-security-monitor-<name>'.

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

How long to wait for each DNS, TLS or HTTP request before giving up.

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

How many domains are checked at the same time.

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "example.com",
    "expired.badssl.com"
  ],
  "checkEmail": true,
  "checkWeb": true,
  "checkDomain": true,
  "trackChanges": false,
  "monitorName": "default",
  "timeoutSecs": 10,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Score, grade, summary and issue counts for each domain.

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

Every field for each domain, including all findings and raw email and web check details.

## `changes` (type: `string`):

Score change, new issues and fixed issues for each domain (filled when change tracking is on).

## `fixes` (type: `string`):

One row per issue with the exact DNS record or header to add.

# 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 = {
    "domains": [
        "github.com",
        "example.com",
        "expired.badssl.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neonronin/domain-security-check").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 = { "domains": [
        "github.com",
        "example.com",
        "expired.badssl.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("neonronin/domain-security-check").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 '{
  "domains": [
    "github.com",
    "example.com",
    "expired.badssl.com"
  ]
}' |
apify call neonronin/domain-security-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neonronin/domain-security-check"
        }
    }
}
```

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/Njm8HmeKLmHJ3mGpb/builds/CIOLgDzNyhP9bqnku/openapi.json
