# Website Tech-Stack, Security Headers & SSL Profiler (`regenerative_cornice/website-tech-security-profiler`) Actor

Bulk website profiler extracting 50+ tech-stack fingerprints (Shopify, WordPress, Webflow, Next.js, Klaviyo, HubSpot, Stripe), HTTP security header grade, TLS/SSL expiry days, robots/sitemap stats, and public social/email links for n8n & MCP.

- **URL**: https://apify.com/regenerative_cornice/website-tech-security-profiler.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 website profileds

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

## Website Tech-Stack, Security Headers, SSL Expiry & Public Contacts Profiler

Bulk-profile **1 to 1,000+ public websites concurrently** with zero browser overhead, zero login bypassing, and zero CAPTCHA solving. Built for **B2B lead enrichment, marketing agencies, cybersecurity hygiene audits, n8n/Make automations, and AI agents via MCP**, this lightweight Python Actor combines async HTTP inspection with native TLS socket verification to return clean, structured intelligence in seconds.

### What Data Does This Actor Extract?

For every public domain or URL, the Actor returns a structured JSON record covering five intelligence layers:

1. **50+ Tech-Stack Fingerprints** grouped across five categories:
   - **CMS & E-commerce:** Shopify, WooCommerce, WordPress, Webflow, Wix, Squarespace, Ghost, Magento, Drupal, BigCommerce
   - **Frontend Frameworks:** Next.js, Nuxt, React, Vue, Astro, Svelte, Tailwind CSS, Bootstrap, jQuery
   - **CDN & Hosting:** Cloudflare, Vercel, Netlify, AWS CloudFront, Fastly, WP Engine, Akamai, GitHub Pages
   - **Marketing, CRM & Analytics:** Klaviyo, HubSpot, GoHighLevel, Mailchimp, ActiveCampaign, Marketo, Segment, Google Tag Manager, Google Analytics 4, Meta Pixel, TikTok Pixel, Hotjar, PostHog, Plausible, Mixpanel
   - **Payments, Support & Observability:** Stripe, PayPal, Calendly, Intercom, Zendesk, Crisp, Drift, Sentry, Paddle, LiveChat
2. **HTTP Security Headers Audit (0–100 Score & A–F Grade):** Checks `Strict-Transport-Security`, `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, and `Permissions-Policy`, plus flags `Server` version disclosure and `X-Powered-By` leakage.
3. **Live TLS/SSL Certificate Inspection:** Opens a direct TLS socket on port 443 to extract certificate validity (`sslValid`), Certificate Authority (`sslIssuer`), UTC expiry timestamp (`sslExpiresAtUtc`), remaining days (`sslDaysUntilExpiry`), and Subject Alternative Name count (`sslSanCount`).
4. **Crawlability & Sitemap Stats:** Verifies public `robots.txt` availability (`hasRobotsTxt`), collects declared or default `/sitemap.xml` endpoints, and counts discovered sitemap URLs (`sitemapUrlsFound`).
5. **Public Metadata & Contacts:** Extracts document `title`, `metaDescription`, filtered public email addresses (`mailto:` links and visible page copy, stripped of image/asset false positives), and official social links (`linkedin`, `x`, `instagram`, `facebook`, `youtube`, `github`).

Built-in **SSRF protection** resolves hostnames via DNS and validates every redirect hop, automatically rejecting loopback, private RFC 1918, link-local cloud metadata (`169.254.169.254`), and reserved IP ranges.

### Input Configuration

Provide a list of public URLs or bare domains (bare domains automatically normalize to `https://`):

```json
{
  "urls": [
    "https://cloudflare.com",
    "https://stripe.com"
  ],
  "checkSslCert": true,
  "checkRobotsAndSitemap": true,
  "extractPublicContacts": true,
  "maxConcurrency": 10,
  "timeoutSeconds": 12
}
```

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `urls` | `string[]` | `["https://cloudflare.com", "https://stripe.com"]` | 1 to 1,000+ public URLs or bare domains to profile. |
| `checkSslCert` | `boolean` | `true` | Perform live TLS handshake on port 443 to inspect SSL expiry and issuer. |
| `checkRobotsAndSitemap` | `boolean` | `true` | Check `robots.txt` and count sitemap URLs. |
| `extractPublicContacts` | `boolean` | `true` | Extract public `mailto:`/visible emails and official social links. |
| `maxConcurrency` | `integer` | `10` | Concurrent websites profiled in parallel (`1`–`30`). |
| `timeoutSeconds` | `integer` | `12` | Per-request HTTP timeout in seconds (`3`–`30`). |

### Example Output JSON

```json
{
  "inputUrl": "https://stripe.com",
  "normalizedUrl": "https://stripe.com",
  "finalUrl": "https://stripe.com/",
  "domain": "stripe.com",
  "status": "ok",
  "error": null,
  "httpStatusCode": 200,
  "responseTimeMs": 312,
  "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
  "metaDescription": "Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.",
  "technologies": [
    "Stripe"
  ],
  "technologyCount": 1,
  "technologiesByCategory": {
    "cms_ecommerce": [],
    "frameworks": [],
    "cdn_hosting": [],
    "marketing_crm": [],
    "payments_support": [
      "Stripe"
    ]
  },
  "securityScore": 90,
  "securityGrade": "A",
  "securityHeaders": {
    "strictTransportSecurity": true,
    "contentSecurityPolicy": true,
    "xFrameOptions": true,
    "xContentTypeOptions": true,
    "referrerPolicy": true,
    "permissionsPolicy": false,
    "missingHeaders": [
      "permissions-policy"
    ],
    "serverHeader": "nginx",
    "xPoweredByHeader": null,
    "leaksServerInfo": false
  },
  "sslValid": true,
  "sslIssuer": "DigiCert Inc",
  "sslExpiresAtUtc": "2027-02-14T23:59:59Z",
  "sslDaysUntilExpiry": 84,
  "sslSanCount": 18,
  "sslError": null,
  "hasRobotsTxt": true,
  "sitemapUrlsFound": 124,
  "sitemapUrls": [
    "https://stripe.com/sitemap/sitemap-index.xml"
  ],
  "publicEmails": [],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/stripe",
    "x": "https://x.com/stripe",
    "github": "https://github.com/stripe"
  },
  "profiledAtUtc": "2026-11-22T16:40:00Z"
}
```

### Pricing: Pay-Per-Event (`website-profiled`)

This Actor uses transparent **Apify Pay-Per-Event** billing with a single event:

- **`website-profiled`** — charged **once per unique website** pushed to your dataset (deduplicated with deterministic idempotency keys `site-<normalizedUrl>` so retries never double-charge).
- Honors your Apify **Max Total Charge (USD)** spending cap automatically: the moment `event_charge_limit_reached` triggers, the Actor stops cleanly without wasting compute.
- Low memory footprint (**256–512 MB** default, no headless browser), delivering fast runs and predictable per-lead unit economics.

### Automation Integrations (n8n, Make & AI Agents / MCP)

#### n8n Workflow Snippet (HTTP Request Node)

Run the Actor synchronously and return dataset items straight into your n8n CRM or enrichment pipeline:

```json
{
  "method": "POST",
  "url": "https://api.apify.com/v2/acts/YOUR_USERNAME~website-tech-security-profiler/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}",
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "urls": ["https://cloudflare.com", "https://stripe.com"],
    "checkSslCert": true,
    "checkRobotsAndSitemap": true,
    "extractPublicContacts": true
  }
}
```

#### Make.com Integration

1. Add the **Apify → Run an Actor** module and select `website-tech-security-profiler`.
2. Map your Google Sheets, HubSpot, or Airtable domain column into the `urls` array.
3. Follow with **Apify → Get Dataset Items** to route `technologies`, `securityGrade`, `sslDaysUntilExpiry`, `publicEmails`, and `socialLinks` directly into your lead-scoring router (e.g., flag prospects using Shopify + Klaviyo or expiring SSL certificates `< 30` days).

#### AI Agents & Model Context Protocol (MCP)

Connect this Actor as an on-demand tool in Claude Desktop, Cursor, or any MCP-compatible AI agent using the official Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "YOUR_USERNAME/website-tech-security-profiler"
      ],
      "env": {
        "APIFY_TOKEN": "apify_api_xxxxxxxxxxxxxxxx"
      }
    }
  }
}
```

Your AI assistant can now answer prompts like *"Profile these 25 agency prospects, tell me which ones run Webflow or WordPress without HubSpot, and flag any site scoring below a B on security headers."*

### Compliance & Responsible Use

- Fetches only publicly accessible HTTP/HTTPS pages, `robots.txt`, public sitemaps, and standard TLS certificates.
- Performs no authentication bypass, no paywall circumvention, and no CAPTCHA solving.
- Enforces strict SSRF defenses rejecting private, loopback, link-local, and non-HTTP(S) targets across initial requests and redirect chains.

# Actor input Schema

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

List of public website URLs or bare domains to profile (e.g. 'https://cloudflare.com' or 'stripe.com'). Private, loopback, and link-local addresses are automatically rejected.

## `checkSslCert` (type: `boolean`):

Inspect the live TLS certificate on port 443 to extract certificate validity, issuer, UTC expiration date, days until expiry, and SAN count.

## `checkRobotsAndSitemap` (type: `boolean`):

Fetch robots.txt and referenced (or default /sitemap.xml) sitemaps to report crawl policy presence and discovered sitemap URL counts.

## `extractPublicContacts` (type: `boolean`):

Extract publicly visible email addresses (mailto: links and page text) and official social media profile URLs (LinkedIn, X, Instagram, Facebook, YouTube, GitHub).

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

Maximum number of websites profiled concurrently.

## `timeoutSeconds` (type: `integer`):

Maximum HTTP request timeout in seconds per website.

## Actor input object example

```json
{
  "urls": [
    "https://cloudflare.com",
    "https://stripe.com"
  ],
  "checkSslCert": true,
  "checkRobotsAndSitemap": true,
  "extractPublicContacts": true,
  "maxConcurrency": 10,
  "timeoutSeconds": 12
}
```

# Actor output Schema

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

Structured overview table of extracted records.

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

All extracted records in the default dataset.

# 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://cloudflare.com",
        "https://stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/website-tech-security-profiler").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://cloudflare.com",
        "https://stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/website-tech-security-profiler").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://cloudflare.com",
    "https://stripe.com"
  ]
}' |
apify call regenerative_cornice/website-tech-security-profiler --silent --output-dataset

```

## MCP server setup

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

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/IE7jjgz04mia1g0N7/builds/ywLcD0Oyxy7Jl2pX6/openapi.json
