# Website TLS & Security Header Monitor (`maydit/website-tls-security-header-monitor`) Actor

Check authorized public websites for TLS certificate expiry and observed HTTP security headers. Export exact evidence and configuration changes without active vulnerability probing or security scores.

- **URL**: https://apify.com/maydit/website-tls-security-header-monitor.md
- **Developed by:** [Brandt May](https://apify.com/maydit) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 saved results

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/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 TLS & Security Header Monitor — illustrative workflow](https://mayd-it.com/assets/actor-banners/website-tls-security-header-monitor-c91ab1e5885c.png)

## Website TLS & Security Header Monitor

Check authorized public websites for TLS certificate expiry and observed HTTP security headers. Export exact evidence and configuration changes without active vulnerability probing or security scores.

### Put this data to work

**This Actor’s job:** Check public TLS and response-header evidence. This Actor is an optional context source in the linked plan; choose it only when this role fits your question.

**Useful outcome:** A URL-level audit with crawl scope, source snapshots and change evidence.

**Small first result.** Begin with `urls` = `["https://mayd-it.com/","https://example.com/","https://www.iana.org/domains/reserved"]`. Keep the starter bounds `maxResults` = `3`. Review any fixed dates and source targets before running. Open the [first-run setup](#start-in-under-a-minute), then inspect `url`, `statusCode`, `tlsProtocol`, `certificateExpiresAt` and the run diagnostics before expanding scope. A row cap is not a spending cap.

#### Choose your next research step

| Companion Actor | What it adds | How the data connects |
| --- | --- | --- |
| [Domain DNS & Email Policy Monitor - SPF, DMARC, MX](https://apify.com/maydit/domain-dns-email-monitor) | Add domain DNS and email-policy observations. | Parallel context; select its own input. No automatic record join. |
| [Website Link Health - Broken Links & Recovery](https://apify.com/maydit/website-link-health-monitor) | Inspect links from selected pages and preserve redirect evidence. | Parallel context; select its own input. No automatic record join. |
| [Sitemap URL Inventory - New, Changed & Removed URLs](https://apify.com/maydit/sitemap-url-inventory-monitor) | Establish the declared URL inventory and inventory-completeness limits. | Parallel context; select its own input. No automatic record join. |

**Keep the scope clear:** Passive HEAD requests only. No login, exploitation, endpoint probing, port scan, vulnerability score or compliance claim. Certificate validation stays enabled. An expired/untrusted TLS handshake fails visibly; it is never bypassed to fabricate a healthy result. Headers are observations for this method, path, edge and time. Each Actor has separate input, source access and pricing; these are documented research steps, not a tested automatic pipeline.

[Full workflow and source limits](https://mayd-it.com/data-tools/workflows/website-audit-and-change-watch/) · [Plan JSON](https://mayd-it.com/data-tools/workflows/website-audit-and-change-watch/plan.json) · [Input schema](https://mayd-it.com/data-tools/actors/website-tls-security-header-monitor/input-schema.json)

### What you get

When does this certificate expire, and did the observed security configuration change? For agencies and site owners maintaining authorized client websites and deployment checklists.

### Start in under a minute

1. Keep the sample URLs for a small test, or enter URLs you own or are authorized to check.
2. Click Start and open Output.
3. Export JSON, CSV or Excel and check SUMMARY/RUN_REPORT for coverage.

### Input recipes

#### Inspect three public-site configurations

Read TLS certificate and HEAD response-header evidence for three public example sites.

```json
{
  "urls": [
    "https://mayd-it.com/",
    "https://example.com/",
    "https://www.iana.org/domains/reserved"
  ],
  "maxResults": 3
}
```

#### Inspect the Mayd It website

Get one compact certificate and header observation for our own public website.

```json
{
  "urls": [
    "https://mayd-it.com/"
  ],
  "maxResults": 1
}
```

#### Start a security-configuration watch

Establish private history; later complete runs identify changed certificates and header settings.

```json
{
  "urls": [
    "https://mayd-it.com/",
    "https://example.com/",
    "https://www.iana.org/domains/reserved"
  ],
  "maxResults": 3,
  "comparePrevious": true,
  "snapshotName": "site-security-watch"
}
```

### Changes and history

comparePrevious establishes a private baseline after a complete run. Later runs retain previous values and changed fields for matching identities; onlyChanges skips unchanged records. Input URL scope and snapshotName isolate watches. Blocked sources, partial output, time or spending limits and concurrent history changes preserve the previous baseline. Missing rows do not prove removal.

### Pricing and controls

$1.00 per 1,000 saved observations ($0.001 each), plus $0.00005 per run start. SUMMARY and RUN_REPORT are free diagnostics. Use maxResults and Apify Maximum cost per run to bound charges. maxResults selects a bounded output window from the entered URLs; it does not claim that every page or security setting was assessed. Unreturned observations do not establish absence or removal. No schedule is created automatically.

### Scope and limits

- Passive HEAD requests only. No login, exploitation, endpoint probing, port scan, vulnerability score or compliance claim.
- Certificate validation stays enabled. An expired/untrusted TLS handshake fails visibly; it is never bypassed to fabricate a healthy result.
- Headers are observations for this method, path, edge and time. Their absence is not proof of a vulnerability. Different responses can have different policies.
- Requests respect robots, public-address checks, secure TLS and strict time/response bounds. Authentication/403/429 blocks are not bypassed. No cookies, credentials or private network requests.

### API, automation and AI

Use the JSON recipes via Apify API, saved tasks, Make, Zapier or Apify MCP. Source URLs, stable IDs, observation timestamps and exact previous values support evidence-backed automation. No LLM is called.

### Source documentation

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers

Independent tool by Mayd It LLC. Respect each target’s terms and data rights.

### Companion workflows

Each Actor runs separately with its own inputs, authorization and pricing. These instructions do not configure automatic execution.

#### [Domain DNS & Email Policy Monitor - SPF, DMARC, MX](https://apify.com/maydit/domain-dns-email-monitor)

Review DNS and email configuration alongside website transport and response headers.

1. Use the same authorized business domain in both tools.
2. Retain their separate timestamps and coverage reports.
3. Prioritize verified configuration changes for human review.

These checks do not constitute a penetration test, certification or complete security assessment.

#### [Website Link Health - Broken Links & Recovery](https://apify.com/maydit/website-link-health-monitor)

Check whether a website rollout also introduced broken navigation.

1. Audit the authorized website's TLS and headers.
2. Run a small separate link-health check on its public pages.
3. Review failures and security-header changes in the same release checklist.

An HTTP error is not proof of a vulnerability; blocked or incomplete checks need separate review.

# Actor input Schema

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

Exact public HTTPS URLs you own or are authorized to check. Up to 10. No credentials, private network addresses or account pages.

## `maxResults` (type: `integer`):

Bound the selected observation window and paid result events.

## `comparePrevious` (type: `boolean`):

The first complete run establishes a baseline under snapshotName. Partial runs do not advance it.

## `onlyChanges` (type: `boolean`):

Enables comparison. Unchanged records are neither saved nor charged.

## `snapshotName` (type: `string`):

Use 1–80 letters, digits, underscores or hyphens. Keep input filters the same to compare.

## `maxRunSeconds` (type: `integer`):

Source requests stop within this budget; partial coverage is reported explicitly.

## Actor input object example

```json
{
  "urls": [
    "https://mayd-it.com/",
    "https://example.com/",
    "https://www.iana.org/domains/reserved"
  ],
  "maxResults": 3,
  "comparePrevious": false,
  "onlyChanges": false,
  "snapshotName": "default",
  "maxRunSeconds": 120
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

## `report` (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": [
        "https://mayd-it.com/",
        "https://example.com/",
        "https://www.iana.org/domains/reserved"
    ],
    "maxResults": 3,
    "maxRunSeconds": 120
};

// Run the Actor and wait for it to finish
const run = await client.actor("maydit/website-tls-security-header-monitor").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": [
        "https://mayd-it.com/",
        "https://example.com/",
        "https://www.iana.org/domains/reserved",
    ],
    "maxResults": 3,
    "maxRunSeconds": 120,
}

# Run the Actor and wait for it to finish
run = client.actor("maydit/website-tls-security-header-monitor").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": [
    "https://mayd-it.com/",
    "https://example.com/",
    "https://www.iana.org/domains/reserved"
  ],
  "maxResults": 3,
  "maxRunSeconds": 120
}' |
apify call maydit/website-tls-security-header-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maydit/website-tls-security-header-monitor"
        }
    }
}
```

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/YcoqiGxQPZIonZEka/builds/L0wZCCueknBcQk6lD/openapi.json
