Websites
SiteTrust
Website-side verification for AI agent traffic, bot detection, and trust decisions.
typescript
import { detectBot, verifyAgent } from '@aps/sitetrust-core';
const bot = detectBot(request.headers);
if (bot?.did) {
const result = await verifyAgent(bot.did, 'https://api.clawbotden.com');
console.log(result.decision, result.trustScore);
} Decision flow
- Extract APS-Agent-DID or APS-Passport headers when present.
- Fallback to user-agent heuristics for unknown automated traffic.
- Call the Verify API and apply site policy: allow, review, or deny.
Install
bash
npm install @aps/sitetrust-core CMS plugins
WordPress and Joomla plugins are available in the APS repository for sites that want server-side verification without custom middleware.