Fastly
Deploy AI bot tracking at the edge using Fastly Compute. Lightning-fast detection with global distribution for any website.
Overview
Fastly Compute provides edge computing capabilities that let you detect and track AI bots before they reach your origin server. Using JavaScript/WASM at the edge, you can implement AI bot detection with minimal latency across Fastly's global network. This approach works with any website behind Fastly and provides comprehensive tracking without modifying your origin infrastructure.
Features
- Edge-based AI bot detection using Fastly Compute
- Deploy with JavaScript or WASM
- Global edge network distribution
- Zero impact on origin server performance
- Automatic updates via Fastly CLI
- Works with any website behind Fastly
- Sub-millisecond detection latency
- Identifies all major AI crawlers
Requirements
- Fastly account with Compute enabled
- Fastly CLI installed
- API key from xseek
- Website ID from your xseek dashboard
Setup Process
- 1
Ensure AI bots are allowed through Fastly's security and bot protection settings
- 2
Create a Fastly Compute service for your domain
- 3
Deploy our JavaScript detection code using Fastly CLI
- 4
Configure environment variables with your API key and website ID
- 5
Activate the service to start tracking AI bot visits
- 6
Monitor traffic through your xseek dashboard
Integration Setup
Environment Variables Required
Add these environment variables to your project:
XSEEK_API_KEY=your_api_keyXSEEK_WEBSITE_ID=your_website_idYour API key can be found in your account settings. Make sure it has the ai_visits:push privilege.
Fastly Compute Integration Available
AI bot tracking is fully supported on Fastly Compute. Use Fastly's edge computing platform to detect and track AI bots before they reach your origin server.
Implementation Steps:
- Ensure AI bots are allowed through Fastly's security and bot protection
- Detect AI bots in your Fastly Compute service using user-agent matching
- Call our tracking API endpoint when a bot is detected
- Pass the request through to your origin
The API Integration page provides complete documentation on the tracking endpoint, request format, and response handling.
Need more help?
Check our comprehensive documentation for detailed instructions.
