LightSite AI – LLM Discovery Integration & Security Guide

Version 2.3.5 | Script 2.3.0 | September 2026

Enable AI assistants to discover, understand, and accurately represent your content.

Technical Documentation

What This Integration Does

LightSite AI adds a lightweight, clearly structured version of your business information to your website so AI assistants like ChatGPT, Gemini, Claude, Perplexity, and Copilot can better understand your business, products, services, and key pages.

The integration also helps your website communicate more clearly with AI bots and gives you visibility into how those bots interact with your content, including what they crawl, what they ignore, and which pages they consume.

LightSite operates as parallel infrastructure rather than changing or replacing your live website. That structured version is hosted separately and connected through a lightweight script and path-scoped routing. Your existing WAF and bot rules can remain in place; the four discovery endpoints are routed to LightSite.

Features

The Four Integration Components

| Component | Purpose |

| AI sitemap link | Points non-JavaScript crawlers to your structured AI sitemap |

| Discovery script | Tracks AI bot and AI-referred human activity |

| robots.txt rules | Declares the sitemap and allows the four discovery paths |

| Redirect or reverse proxy | Serves four LightSite discovery paths under your domain |

Prerequisites

AI Sitemap Link and Discovery Script

Add these tags to the HTML head. Use the exact current code from the site's Integration Code widget. The direct API sitemap URL is a fallback if the branded path cannot be reached.

<!-- LightSite AI Discovery Integration v2.3.0 -->

<link rel="sitemap" type="application/xml" title="AI Sitemap" href="https://api.llm-discovery-api.com/functions/v1/llm-discovery/public/sitemap.xml?domain=lightsite.ai" />

<script src="https://cdn.lightsite.ai/v2.3.0/llm-delivery.js" defer data-apikey="YOUR-API-KEY"></script>

Step 2 — robots.txt

Add the discovery rules while preserving existing security policies. Place the sitemap declaration with the other Sitemap lines. Use the site's actual domain.

---- LightSite.ai AI Discovery ----

User-agent: *

Allow: /

Allow: /ai-sitemap.xml

Allow: /.well-known/ai-catalog.json

Allow: /.well-known/skills.json

Allow: /.well-known/openapi.json

LightSite verification crawler

User-agent: LightSiteBot

Allow: /

Machine-readable entry points

Agentmap: https://example.com/.well-known/ai-catalog.json

Sitemap: https://example.com/ai-sitemap.xml

---- LightSite.ai AI Discovery END ----

> ⚠️ Check any broader Disallow rules or WAF policies separately. An Allow entry alone does not override a server-side bot block.

Route Four Discovery Paths

Use either a permanent redirect (301) or a same-domain reverse proxy (200) for each path. A proxy keeps the public URL on your domain and should forward the crawler identity and original request metadata. Routing applies only to the four paths below; normal page traffic stays on your site.

| Public path | LightSite public endpoint |

| /ai-sitemap.xml | sitemap.xml |

| /.well-known/ai-catalog.json | ai-catalog.json |

| /.well-known/openapi.json | openapi.json |

| /.well-known/skills.json | skills.json |

Option A: 301 Redirects

For each public path, redirect to the matching endpoint at the following base URL, with the site domain as a query parameter:

https://api.llm-discovery-api.com/functions/v1/llm-discovery/public/{endpoint}?domain=example.com

Example: /ai-sitemap.xml redirects to the public sitemap endpoint. Configure all four paths in the hosting platform's routing interface.

Option B: Same-Domain 200 Reverse Proxy

Internally fetch the matching endpoint with domain=example.com&ls_proxy=1 and return its upstream response at the original path. Forward User-Agent , Accept , Accept-Language , and relevant agent identification headers. Set X-LightSite-Original-Host and X-LightSite-Original-URI. Forward the actual client IP using a trusted server-side header supported by your edge platform; do not accept a client-supplied IP header as authoritative.

// Hosting-neutral edge-handler example. Adapt to your platform's request API.

const files = {

'/ai-sitemap.xml': 'sitemap.xml',

'/.well-known/ai-catalog.json': 'ai-catalog.json',

'/.well-known/openapi.json': 'openapi.json',

'/.well-known/skills.json': 'skills.json',

};

async function handleDiscovery(request, trustedClientIp) {

const incoming = new URL(request.url);

const file = files[incoming.pathname];

if (!file) return null; // Let the site's normal handler continue.

const target = new URL(

'https://api.llm-discovery-api.com/functions/v1/llm-discovery/public/' + file);

target.searchParams.set('domain', 'example.com');

target.searchParams.set('ls_proxy', '1');

const headers = new Headers();

for (const name of ['User-Agent', 'Accept', 'Accept-Language', 'Referer',

'Origin', 'Sec-CH-UA', 'X-Agent-Id', 'X-Automation-Id']) {

const value = request.headers.get(name);

if (value) headers.set(name, value);

}

for (const [name, value] of request.headers) {

const key = name.toLowerCase();

if (key.startsWith('x-openai') || key.startsWith('x-anthropic') ||

key.startsWith('x-ai-')) headers.set(name, value);

}

if (trustedClientIp) {

headers.set('X-LightSite-Client-IP', trustedClientIp);

headers.set('X-Real-IP', trustedClientIp);

}

headers.set('X-LightSite-Original-Host', incoming.host);

headers.set('X-LightSite-Original-URI', incoming.pathname);

const upstream = await fetch(target, { method: 'GET', headers,

cache: 'no-store' });

const responseHeaders = new Headers(upstream.headers);

responseHeaders.set('Cache-Control', 'no-store');

return new Response(upstream.body, { status: upstream.status,

headers: responseHeaders });

}

The edge example is platform neutral. Add the platform's route binding, trusted client IP accessor and error handling before deployment. A configuration-based proxy can implement the same route mapping and header forwarding.

Verification Checklist & Troubleshooting

Verification Checklist

Troubleshooting

| Symptom | Check |

| Discovery path returns 404 | Confirm all four route definitions and their upstream endpoints. |

| HTML instead of XML/JSON | Ensure the route precedes the site's catch-all or SPA fallback. |

| Bot activity missing | Check script, bot access rules, WAF, proxy headers and analytics delay. |

| Wrong site content | Check the domain query parameter and the site-specific API key. |

Resources and Support

Legal & Policy

Trust & Availability

Account & Support

LightSite AI — Security Overview

For use in customer security reviews and enterprise procurement.

1. What LightSite Is (and Is Not)

LightSite is an AI search optimisation and analytics platform with two functions:

| LightSite is a parallel layer | No privileged access. No inbound path. |

| Customer page traffic is never routed through LightSite. If LightSite is unavailable, the customer's website is unaffected. | All integration traffic is outbound-only over HTTPS. |

| Data LightSite DOES process | Data LightSite does NOT process |

| Publicly available website content | End-user PII or employee data |

| Publicly available brand mentions | Customer records, CRM/order/payment data |

| Anonymous AI-crawler and AI-referral event data | End-user credentials |

| Customer's own authenticated account data (users, sites, configuration) | Cookie-based tracking identifiers or browser fingerprints |

Architecture, Tenancy & Encryption

2. Architecture

Technology Stack

| Layer | Technology |

| Frontend | React 18 + TypeScript, static hosting behind CDN |

| Application / API | Database Edge Functions (Deno), stateless |

| Database | PostgreSQL (AWS eu-central-1 / Frankfurt, Germany) |

| Authentication | Supabase Auth (JWT), Microsoft Entra ID SSO supported |

| AI processing | Google Gemini API |

| Search data | Google Custom Search API; customer-authorised Google Search Console |

Three-tier architecture (web / application / database). Database is not directly reachable from the internet.

Integration Components

| Component | What it is | Risk profile |

| robots.txt line | Discovery pointer to the AI sitemap | Text only; does not affect existing SEO crawlers |

| JavaScript snippet |

4. Encryption

| In Transit | At Rest | Secrets |

| HTTPS with certificates from public CAs. All inter-component communication is TLS 1.2 or above. | AES-256 encryption of the PostgreSQL database and backups (Supabase/AWS platform). | All credentials and API keys stored as managed secrets in the platform secret store. No secrets in source control. |

Access Control, Logging & Vulnerability Management

5. Authentication and Access Control

6. Logging, Audit and Monitoring

> LightSite does not currently operate an automated SIEM system. LightSite commits to notifying the customer's security contact promptly if suspicious behaviour is identified; log extracts available on request.

7. Assurance, Vulnerability and Patch Management

Independent Assurance

| Activity | Date |

| Independent penetration test | January 2026 |

| External code, security and architecture review | July 2026 |

| Next scheduled penetration test | January 2027 (annual cycle) |

LightSite approves pre-coordinated penetration testing by the customer or customer-appointed third party, at no charge. Attestation summaries available on request; full reports under NDA.

Ongoing Practices

Data Residency, Sub-Processors & Compliance

8. Data Residency, Sub-Processors and Transfers

Primary customer database hosted on AWS infrastructure in Frankfurt, Germany (eu-central-1) via Supabase.

Core App's Sub-Processors

| Sub-processor | Role | Region |

| Supabase | Database, auth, storage, compute | EU |

| Amazon Web Services | Infrastructure | EU |

| Google Cloud / Gemini API | AI analysis and report generation | EU |

| Resend | Transactional email | EU |

Optional (customer-enabled only): Slack, Google Search Console, Shopify.

Transfers to AI providers: content sent consists of the customer's public page content and search-style prompts only. No personal data, credentials or non-public business data transmitted. Submitted content is not used for provider model training.

9. Use of Data for Model Training

10. Retention, Export and Deletion

11. Performance and Availability Impact

12. Compliance Posture

| Area | Detail |

| GDPR | Processes public website content and anonymous event data; no end-user personal data collected. DPA available. Production data resides in the EU. |

| Control framework | Core security controls implemented informed by SOC 2 and ISO 27001 requirements. |

| Certifications | LightSite does not currently hold SOC 2 Type II or ISO 27001 certification. Expect to pursue formal assurance as it scales; will accelerate SOC 2 for the right customer engagement. |

| Prior review | LightSite has completed and passed 2 independent penetrations tests, code, security and architecture review. |

Verification, Bot Identification & Summary

13. Verification by the Customer

14. Bot Identification (for CDN and WAF Allow-Listing)

LightSite's crawler identifies itself unambiguously:

| User-Agent | Headers |

| Contains LightSiteBot/1.0 (+https://lightsite.ai) | X-LightSite-Bot, X-LightSite-Tool |

| Manifest | Signed Requests |

| https://lightsite.ai/.well-known/lightsite-bot.json (includes Ed25519 public key) | Outbound requests are signed (HTTP Message Signatures) for cryptographic verification |

15. Summary

> LightSite does not access your internal systems. It requires no database credentials, introduces no inbound access paths to your infrastructure, and collects no private visitor or company data. The integration connects your website to a controlled AI discovery layer built from public marketing information only. No employee data, customer data or other non-public company data is shared with LLMs or used for training. Your site's performance, CDN behaviour and WAF policies are unchanged, because your traffic never passes through us.

16. Contact

Security questions, incident reports and documentation requests: support@lightsite.ai

LightSite AI – Security Overview Version 2.0 – 6 August 2026 | Integration Guide Version 2.3.5 | Script version 2.3.0 | September 2026