Domain Security Audit (TLS, HTTP headers, redirects, robots) avatar

Domain Security Audit (TLS, HTTP headers, redirects, robots)

Pricing

from $1.20 / 1,000 results

Go to Apify Store
Domain Security Audit (TLS, HTTP headers, redirects, robots)

Domain Security Audit (TLS, HTTP headers, redirects, robots)

Domain Security Audit checks TLS certificate validity, HSTS/CSP and other HTTP security headers, the redirect chain and robots.txt/llms.txt AI-bot rules for any list of domains — one scored, graded row per domain.

Pricing

from $1.20 / 1,000 results

Rating

0.0

(0)

Developer

Murat Uzun

Murat Uzun

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

From $1.20 per 1,000 domains (FREE plan $2.00 per 1,000). TLS certificate, HTTP redirects, security headers, cookies, homepage third-party scripts without SRI, mixed content, AI-crawler rules and SPF/DMARC for each domain, one graded row per domain.

What is Domain Security Audit?

Domain Security Audit is an Apify Actor that checks a TLS certificate, the HTTP → HTTPS redirect chain, HTTP security headers, cookie flags, the homepage's third-party scripts (and which load without Subresource Integrity), mixed content, robots.txt / llms.txt AI-crawler rules and SPF / DMARC email records for any list of domains, and returns one scored, graded row per domain. TLS comes straight from a node:tls handshake on port 443, SPF and DMARC from two DNS TXT queries; everything else is a plain fetch — no proxies, no headless browser, no anti-bot wall. Each row gets a securityScore (0-100), a securityGrade (A-F) and an issues array in plain English ("No HSTS header", "TLS certificate expires in 9 day(s)") that drops straight into a client report or a sales-prospecting sheet.

Why use Domain Security Audit?

  • Security consultants and MSPs — score a prospect list in minutes instead of running curl -I and openssl s_client on each site by hand.
  • Sales and lead-scoring teams — a low securityGrade or an expiring certificate is a concrete opener for an outbound e-mail.
  • SEO and content teams — aiBotsDisallowed and llmsTxtExists show whether a site blocks GPTBot/ClaudeBot/Google-Extended or publishes an llms.txt, which matters for AI-search visibility.
  • Web security and compliance reviews — thirdPartyScriptHosts lists every outside host whose JavaScript the homepage loads, and thirdPartyScriptsWithoutSri counts the ones with no integrity hash, the starting point for a script inventory (for example for PCI DSS 4.0 requirement 6.4.3 on payment pages). mixedContentCount and insecureFormCount catch http:// resources and forms on an HTTPS page.
  • Internal audits — run it on a schedule against your own domain portfolio to catch a certificate about to expire or a header that regressed after a deploy.

How to use Domain Security Audit

  1. Paste your domains into Domains. Bare domains, full URLs and www. prefixes are all accepted and normalised: https://www.apify.com/store becomes apify.com.
  2. Leave Check TLS certificate, Check HTTP security headers, Follow redirect chain, Check robots.txt and llms.txt, Check SPF and DMARC and Check homepage scripts and mixed content all on for the full audit; turn any of them off to skip that section and save a couple of seconds per domain.
  3. Raise Max concurrency for large lists, click Start, then export the dataset as JSON, CSV, Excel or HTML from the Overview, TLS certificate, Headers, redirects & robots, Email authentication or Page scripts and mixed content views.

Input parameters

ParameterTypeDefaultDescription
domainsarray["apify.com"]Domains to audit, one row each
checkTlsbooleantrueConnect on port 443 and read the peer certificate
checkHeadersbooleantrueRead HSTS, CSP, X-Frame-Options and other headers on the final URL
followRedirectsbooleantrueFollow the http:// → final-URL redirect chain (up to 10 hops)
checkRobotsbooleantrueFetch /robots.txt (AI-bot rules) and /llms.txt
checkEmailAuthbooleantrueLook up SPF (apex TXT) and DMARC (_dmarc TXT); separate fields, not part of the score
checkPageResourcesbooleantrueRead the homepage HTML from the header fetch (one extra request only when the site stays on http:// but also serves HTTPS): third-party scripts, scripts without SRI, mixed content, http:// forms; separate fields, not part of the score
maxConcurrencyinteger5Domains audited in parallel (1-20)

Output

Domain Security Audit extracts 60+ fields per domain across six areas. You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

Field groupExample fieldsDescription
TLS certificatecertValidFrom, certValidTo, certDaysUntilExpiry, certIssuerOrg, certIssuerCN, certSubjectCN, certSanCount, certAuthorized, tlsProtocolPeer certificate read from a raw node:tls handshake, chain-validity flag and negotiated TLS version
RedirectsfinalUrl, redirectHops, redirectChain, httpsRedirect, wwwRedirectThe hop-by-hop path from http://<domain>/ to the final URL
HTTP headershasHsts, hstsMaxAge, hstsIncludeSubdomains, hstsPreload, hasCsp, cspHasUnsafeInline, xFrameOptions, xContentTypeOptions, referrerPolicy, permissionsPolicy, server, xPoweredBy, cacheControl, cookieCount, secureCookieCount, httpOnlyCookieCount, sameSiteCookieCountSecurity headers and cookie flags on the final response
robots.txt / llms.txtrobotsStatus, robotsDisallowAll, robotsSitemapCount, aiBotsDisallowed, llmsTxtExists, llmsTxtTitle, llmsTxtSizeWhich AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot…) are blocked, and whether an llms.txt exists
Email authenticationhasSpf, spfRecord, spfAllPolicy, spfDnsLookups, hasDmarc, dmarcRecord, dmarcPolicy, emailAuthIssues, emailAuthErrorSPF record and its all policy, DMARC policy, and plain-English findings ("No DMARC record", "SPF ends with +all")
Page scripts and mixed contentpageResourcesUrl, externalScriptCount, thirdPartyScriptCount, thirdPartyScriptsWithoutSri, thirdPartyScriptHosts, mixedContentCount, mixedActiveContentCount, mixedContentSamples, insecureFormCount, pageResourceIssuesScripts from other sites in the homepage HTML and how many lack an integrity (SRI) hash, http:// resources on an HTTPS page (active = scripts, stylesheets, frames) and forms that post to http://
ScoresecurityScore, securityGrade, issues0-100 score, A-F grade and a plain-English findings list
Metadomain, fetchError, error, scrapedAtNormalised hostname, the HTTP request error when the domain answered but a redirect/header request still failed after retries, the failure reason if the domain was unreachable, and the audit timestamp

Example input

{
"domains": ["apify.com", "example.com", "neverssl.com"],
"checkTls": true,
"checkHeaders": true,
"followRedirects": true,
"checkRobots": true,
"checkEmailAuth": true,
"maxConcurrency": 5
}

Example output

{
"domain": "apify.com",
"certAuthorized": true,
"certDaysUntilExpiry": 62,
"certIssuerOrg": "Let's Encrypt",
"tlsProtocol": "TLSv1.3",
"finalUrl": "https://apify.com/",
"redirectHops": 1,
"httpsRedirect": true,
"hasHsts": true,
"hstsMaxAge": 63072000,
"hasCsp": false,
"xFrameOptions": "SAMEORIGIN",
"robotsDisallowAll": false,
"aiBotsDisallowed": [],
"llmsTxtExists": false,
"securityScore": 75,
"securityGrade": "B",
"hasSpf": true,
"spfAllPolicy": "~all",
"hasDmarc": true,
"dmarcPolicy": "reject",
"emailAuthIssues": [],
"externalScriptCount": 46,
"thirdPartyScriptCount": 0,
"thirdPartyScriptsWithoutSri": 0,
"thirdPartyScriptHosts": [],
"mixedContentCount": 0,
"insecureFormCount": 0,
"pageResourceIssues": [],
"issues": ["No Content-Security-Policy header"],
"scrapedAt": "2026-09-12T15:45:00.000Z"
}

Pricing: cost per 1,000 domains

Apify plan tierPrice per 1,000 domains
FREE$2.00
BRONZE$1.60
SILVER$1.40
GOLD, PLATINUM, DIAMOND$1.20

Price source: the Actor's pricingInfos record (28 Nov 2026). Failed domains go to the ERRORS record and are not billed.

Domain Security Audit uses pay-per-event pricing: $0.002 per domain result, i.e. $2 per 1,000 domains on the FREE plan, plus a negligible actor-start fee, platform usage included. Each domain is one TLS handshake, up to 10 HTTP redirect hops, one headers fetch (whose HTML also feeds the script and mixed-content check; plus one HTTPS homepage fetch for sites that stay on http://), two text fetches (robots.txt, llms.txt) and two DNS queries (SPF, DMARC), so compute cost stays in the cents even for a few hundred domains. Set Maximum cost per run and the Actor trims the domain list to what the budget covers instead of overspending.

Domain Security Audit vs. manual curl/openssl checks

Checking one domain's TLS expiry, headers and robots.txt by hand means openssl s_client, curl -I and a manual read of /robots.txt — three tools per domain with no structured output. Domain Security Audit runs all of that for an entire list in parallel and returns one flat, scored dataset row per domain, ready to filter, sort or pipe into a CRM.

Domain Security Audit vs. other domain audit Actors

The ten most-used Apify Store Actors for domain and website security checks (Store, users in the last 30 days, read 28 Nov 2026). Rival facts are "documented" (from their README, input schema or pricing record), not measured runs. Prices are per 1,000 domains, FREE plan → lowest tier.

ActorUsers (30 d)Price per 1,000TLS certSecurity headersCookie flagsAI-crawler rules + llms.txtSPF + DMARCThird-party scripts without SRI + mixed contentChange monitoring
This Actor—$2.00 → $1.20yesyesyesyesyesyesno
santamaria-automations/domain-whois-dns33$3.00 → $2.10nonononoyesnono
datascoutapi/DomainDaddy26$0.49HTTPS yes/no onlynot in documented outputnonoSPF TXT onlynono
gazidev/bulk-dns-lookup24$1.00nonononoyesnoyes (DNS records)
zhorex/domain-authority-checker14$5.00yesnonorobots.txt exists onlynonono
fayoussef/seo-geo-aeo-audit10$4.50 → $4.30 per pagenononoyesnonono
lergassy/domain-intelligence-scraper7$4.00 → $2.80yesHSTS as a detected technologynonoyesnono
locomint/ai-crawler-checker5$3.00 → $2.40nononoyesnonono
automation-lab/website-health-report4$3.45 → $0.84 + $0.035 per runyesyesnonononoyes (score regression)
onescales/website-intelligence-analyzer-osint4$100 → $2.00yesyesyesnoyesnono
trovevault/domain-security-scanner4$1.50 → $1.28yesyesyesnononono

Where a rival is cheaper or has something we lack, we say so: DomainDaddy ($0.49), gazidev ($1.00) and trovevault ($1.50 → $1.28) cost less per domain, and automation-lab/website-health-report is cheaper on the PLATINUM and DIAMOND tiers. gazidev and automation-lab offer change or regression monitoring between runs, which this Actor does not. What no other Actor in this list returns is the TLS certificate, security headers, cookie flags, AI-crawler rules and SPF/DMARC together in one row per domain. None of the ten documents a check of the homepage's third-party scripts for Subresource Integrity or of mixed content (their READMEs and input schemas, read 30 Nov 2026). Outside these ten, a few single-purpose Actors with 1–2 monthly users do check SRI or mixed content on their own (q_services/mixed-content-sri-auditor, benthepythondev/sri-integrity-checker, gifted_wagon/third-party-script-evidence-auditor, 1 Dec 2026); this Actor puts that check in the same row as TLS, headers and email records.

Limitations

  • SPF and DMARC only: DKIM needs a selector guess per mail provider and is not checked, and SPF include: chains are counted at the top level, not resolved recursively. Use the Domain DNS & Email Security Checker for DKIM, MX provider and a recursive SPF count.
  • Reads only the URLs it is given and the paths it fetches (/robots.txt, /llms.txt); it does not crawl the site.
  • The script and mixed-content check reads the homepage HTML as served. Scripts that a tag manager or consent tool injects later are not seen, and a site that answers with a bot wall (403) leaves those fields empty. A host whose name starts with the site's own name (stripecdn.com for stripe.com) counts as the site's own; any other host, including a company CDN under a different name, counts as third-party.
  • Scores are heuristics over headers and TLS settings, not a penetration test or a vulnerability scan.

Run domain-security-audit from Python and the command line

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("webdatatools/domain-security-audit").call(run_input={"domains":["apify.com"],"checkRobots":true})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

Command line (Apify CLI, npm install -g apify-cli, then apify login):

$apify call webdatatools/domain-security-audit --input='{"domains":["apify.com"],"checkRobots":true}'

Using Domain Security Audit with AI agents and MCP

Domain Security Audit is pay-per-event with limited permissions — the two requirements for an Actor to be callable through the Apify MCP server at mcp.apify.com. An agent passes domains and gets back a scored, graded row per domain it can reason over directly ("which of these ten prospects have the weakest header hygiene?"). The same run works from n8n, Make, Zapier and LangChain through Apify's integrations.

FAQ

How is the score calculated? HTTPS redirect +20, valid/trusted certificate +20 (certificate has more than 14 days left +5), HSTS +15, CSP +10, X-Frame-Options +5, X-Content-Type-Options +5, Referrer-Policy +5, Permissions-Policy +5, no X-Powered-By leak +5, all cookies carry the Secure flag +5. Grades: A ≥ 85, B ≥ 70, C ≥ 50, D ≥ 30, else F.

Why does neverssl.com score low? It intentionally serves plain HTTP with no TLS certificate at all (it exists to test captive portals), so it loses every TLS- and HTTPS-redirect point.

Do SPF and DMARC change the security grade? No. They are reported in their own fields and in emailAuthIssues, so securityScore and securityGrade stay comparable with earlier runs. Set checkEmailAuth to false to skip the two DNS queries.

What does the script check find on a real site? On python.org (30 Nov 2026) it lists 7 external scripts, 2 of them from ajax.googleapis.com (jQuery and jQuery UI) with no integrity attribute, so thirdPartyScriptsWithoutSri is 2. Mixed content only exists on an HTTPS page. arngren.net (1 Dec 2026) answers on http:// without redirecting, so the Actor also reads its HTTPS homepage (one extra request, only for sites like this) and finds an http:// counter image there: pageResourcesUrl https://arngren.net/, mixedContentCount 1, mixedActiveContentCount 0. When a site has no working HTTPS homepage, the mixed-content and form fields stay empty instead of reporting a misleading 0. These fields do not change securityScore, so grades stay comparable with earlier runs.

What if a site drops the connection? Some servers drop the first connection from a new IP (neverssl.com did this to Apify servers in 5 of 8 test runs on 1 Dec 2026). Connection resets and connect timeouts are retried twice, one second apart, so the headers still come back. If every try fails while the TLS certificate was read, the row says so in fetchError (for example fetch failed (UND_ERR_SOCKET)), the header fields stay null and are not scored or listed as missing. Earlier versions returned such a row with empty headers and no explanation.

What happens with a domain that doesn't resolve? The row still comes back — with error set to the failure reason and every other field null — instead of failing the whole run.

Is this legal to run? Yes. TLS certificates, HTTP response headers, the public homepage HTML, DNS TXT records, robots.txt and llms.txt are all public information a server sends to anyone who connects; no personal data is collected.

Can I export to CSV or Excel? Yes, from the Output tab or the API, with ready-made Overview, TLS certificate, Headers, redirects & robots and Email authentication (SPF, DMARC) and Page scripts and mixed content views.

Part of the webdatatools web-intelligence suite — every Actor is pay-per-event, reads public data without a login, and returns one clean row per entity:

Browse the whole suite at webdatatools, or call ten of these Actors straight from Claude, Cursor or Cline with the webdatatools MCP server.

Website & domain intelligence

Content for AI, LLMs and RAG

Search, video and social

Leads, jobs and company data

Developer, app and research data

Need this audit to run every day and tell you only when something changes? Domain Watch is a hosted monitoring service that tracks TLS certificate and domain expiry (alerts 30, 14, 7 and 1 days before), SPF, DMARC and nameserver changes, and new hostnames in certificate-transparency logs, with alerts by email, webhook or Telegram. You can try one domain with the free instant domain check (no sign-up).

Support and feedback

Found a header worth tracking, an AI crawler that should be added to the robots.txt check, or a parsing bug? Open an issue on the Issues tab.

If this Actor saved you time, please leave a short review on its Store page. It helps other buyers find it.