# Website Security Audit - Bulk Headers, SSL & Grade (`helenisapi/website-security-audit-bulk`) Actor

Website security audit in bulk: domains in, a grade from A+ to F out, with security headers, cookies, HTTPS redirect, SSL certificate expiry, TLS versions and exact fixes. 🔒

- **URL**: https://apify.com/helenisapi/website-security-audit-bulk.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 site audited

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/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

## 🔒 Website Security Audit - Bulk Headers, SSL & Grade

**Grade the security of a list of websites, and get the exact fix for each problem.** Paste domains and get, for each one, a **grade from A+ to F**, its **security headers** (CSP, HSTS, X-Frame-Options...), its **cookie flags**, its **HTTPS redirect**, its **SSL certificate** (valid, issuer, days left) and the **TLS versions** it still accepts, with the line to copy for **nginx**, **Apache** or **Cloudflare**.

No API key, nothing to install: paste your websites and hit **Run**.

***

### ⚡ Why this actor?

- 📋 **Bulk:** hundreds of websites in one run, audited 10 at a time.
- 🛡️ **Real header analysis:** not just "present or missing": a CSP with `'unsafe-inline'`, a short HSTS or a report-only policy is caught.
- 🔐 **SSL and TLS:** expired, wrong-name or self-signed certificates, days left before expiry, TLS 1.0 and 1.1 still accepted.
- 🍪 **Cookies:** Secure, HttpOnly and SameSite flags (names only, never values).
- 🔧 **Fixes included:** each row carries the nginx, Apache and Cloudflare changes to make.
- 📐 **An explainable grade:** a documented scale, points per check, caps for critical problems.
- 💸 **Cheap:** pay per website audited; unreachable websites are free.

***

### 📊 What data do you get?

One row per website:

| Field | Description | Example |
|---|---|---|
| `url` / `finalUrl` | Website, and the page audited after redirects | `github.com` / `https://github.com/` |
| `grade` / `score` | A+ to F, 0-100 | `A` / `100` |
| `gradeCap` | Critical problem limiting the grade | `Invalid certificate: certificate has expired.` |
| `failed` / `warnings` | Number of failed checks and warnings | `0` / `2` |
| `issues` | Each problem, in plain English | `["Permissions-Policy: No Permissions-Policy: ..."]` |
| `https` / `httpRedirect` | HTTPS works, http:// redirects | `pass` / `pass` |
| `hsts` / `csp` | The headers as sent | `max-age=31536000; includeSubdomains; preload` |
| `certValid` / `certIssuer` / `certExpires` / `certDaysLeft` | SSL certificate | `true` / `Sectigo Limited` / `2027-01-27T23:59:59Z` / `64` |
| `tls10` / `tls11` / `tls13` | Protocol versions accepted | `false` / `false` / `true` |
| `securityTxt` / `robotsTxt` | Files found | `true` / `true` |
| `nginxFix` / `apacheFix` / `cloudflareFix` | Every fix, ready to paste | `add_header Permissions-Policy "camera=(), ..." always;` |
| `checks` | Every check with status, points, value and fix | `[...]` |
| `error` | Why a website could not be audited | `The website did not answer in time.` |

***

### 🚀 How to use it

1. Paste your **websites**, one per line (`example.com` or a full page URL).
2. Keep **Include every check** on for the full detail, or turn it off for a lighter table.
3. Click **Run**, then export the table.

#### Input example

```json
{
  "urls": ["github.com", "example.com", "expired.badssl.com"],
  "includeChecks": true
}
```

#### Output example

```json
{
  "url": "example.com",
  "finalUrl": "https://example.com/",
  "grade": "F",
  "score": 0,
  "gradeCap": null,
  "failed": 6,
  "warnings": 2,
  "issues": [
    "TLS protocol versions: TLS 1.0 and TLS 1.1 still accepted: deprecated since 2021 (RFC 8996), and refused by PCI DSS.",
    "HTTP to HTTPS redirect: http:// serves the page unencrypted instead of redirecting to HTTPS.",
    "Strict-Transport-Security (HSTS): No HSTS: a first visit over http:// can be intercepted and kept on plain HTTP.",
    "Content-Security-Policy: No Content-Security-Policy: an injected script runs with full access to the page.",
    "..."
  ],
  "https": "pass",
  "httpRedirect": "fail",
  "hsts": null,
  "csp": null,
  "certValid": true,
  "certIssuer": "SSL Corporation",
  "certExpires": "2026-12-25T22:56:35Z",
  "certDaysLeft": 31,
  "tls10": true,
  "tls11": true,
  "tls13": true,
  "securityTxt": false,
  "robotsTxt": false,
  "nginxFix": "# TLS protocol versions\nssl_protocols TLSv1.2 TLSv1.3;\n# HTTP to HTTPS redirect\nserver {\n    listen 80;\n    server_name _;\n    return 301 https://$host$request_uri;\n}\n# Strict-Transport-Security (HSTS)\nadd_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;\n...",
  "cloudflareFix": [
    "SSL/TLS › Edge Certificates › Minimum TLS Version: TLS 1.2",
    "SSL/TLS › Edge Certificates › Always Use HTTPS: On",
    "..."
  ]
}

*From a real run.*
```

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 🔒 Site audited | Each website audited (headers, cookies, HTTPS, certificate, TLS versions, files) |

> 🆓 On the Apify **free plan**, each run audits the first 25 websites.

Websites that cannot be reached are not charged. The run stops cleanly when your spending limit is reached.

***

### 💡 Use cases

- 🧑‍💼 **Agencies and freelancers:** audit every client site and hand over the fixes.
- 📈 **Lead generation:** find prospects with an F and an expiring certificate, and offer to fix them.
- 🏢 **IT and security teams:** grade every company domain in one run, every week.
- 🔐 **Certificate monitoring:** days left and TLS versions across a fleet of hosts.
- 🔍 **Due diligence:** a quick, explainable security score for a vendor or an acquisition.

***

### ❓ FAQ

**Is this a penetration test?**
No. The actor reads what any browser receives (headers, cookies, certificate, the page's HTML) and checks which TLS versions the server accepts with a normal handshake. Nothing is attacked or scanned.

**How is the grade computed?**
The score starts at 100 and each check adds its points (for example -20 for no Content-Security-Policy, -10 for cookies without Secure, +5 for HSTS ready for preload). A+ needs 100 with no warning, A 90, B 75, C 60, D 45, F below. No working HTTPS or an invalid certificate caps the grade at F, TLS 1.0 or 1.1 at B.

**Why does a famous website get a D?**
Many large sites skip a strict Content-Security-Policy or still accept TLS 1.0 for old devices. The grade measures these settings, not the whole security program.

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/website-security-audit-bulk
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/website-security-audit-bulk")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **Website Security Audit - Headers, SSL & Grade** by **Helenis API**, with a header grader for staging servers and CI (paste the output of `curl -I`) and a TLS-only check.

***

### 🔒 Privacy

The actor reads public pages only. Cookie values and `security.txt` contacts are never returned or stored.

# Actor input Schema

## `urls` (type: `array`):

Websites to audit, one domain or page URL per item, e.g. \["github.com", "https://shop.example.com/checkout"]. Always required: the run does nothing without at least one. Up to 5,000 per run, duplicates removed. Each site returns one row: grade A+ to F, score 0-100, issues, certificate, TLS versions and the nginx, Apache and Cloudflare fixes. A site that cannot be reached gets a row with its error and is not charged.

## `includeChecks` (type: `boolean`):

true (default): each row carries the full checks list: status, points, what the site sends and the fix (header line, nginx, Apache, Cloudflare). false: an empty checks list for a lighter table; grade, issues and fixes are kept.

## Actor input object example

```json
{
  "urls": [
    "github.com",
    "example.com",
    "expired.badssl.com"
  ],
  "includeChecks": true
}
```

# Actor output Schema

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/website-security-audit-bulk"
        }
    }
}
```

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/CIhKSib3cWnhpqy3q/builds/pCStC3Ntc0ORjnNPK/openapi.json
