Traffic Control Dashboard
The Traffic Control dashboard lets you configure which AI agents and bots can access your website. Rules are managed centrally in Spyglasses and automatically enforced by your site integration.
For comprehensive Traffic Control documentation including implementation details and example configurations, see Traffic Control Guide.
What You'll Learn
In this guide, you'll learn:
- How to configure bot blocking settings
- How to create custom block and allow rules
- How rules sync to your site
- Best practices for bot management
How It Works
Traffic Control is managed centrally in Spyglasses at the property level. Your site integration (middleware, plugin, or worker) automatically syncs the rules and enforces them at the edge. You don't need to ship code changes to update your block/allow lists.
Rule Enforcement
- You configure rules in Spyglasses
- Your integration periodically syncs rules
- When bots visit, rules are applied automatically
- Blocked bots receive HTTP 403 Forbidden responses
- Allowed bots access your content normally
Global Settings
Enable broad protections with a single toggle:
Block AI Model Trainers
When enabled, this automatically blocks known model-training crawlers:
- GPTBot (OpenAI)
- ClaudeBot (Anthropic)
- Meta-ExternalAgent
- Google-Extended
- CCBot (Common Crawl)
- And others
This prevents your content from being used in future AI training while still allowing AI assistants to access your content for current conversations.
Other Global Settings
Depending on your configuration options:
- Block all scrapers
- Block suspicious user agents
Browse Categories
View bot categories and their associated patterns:
- AI Model Trainers
- AI Assistants
- Search Crawlers
- SEO Bots
- Social Bots
- Scrapers
For each category, you can set Block or Allow.
Browse Specific Patterns
Drill down to specific bots or user agent patterns:
- Set rules for individual bots
- Create pattern-based rules
- Override category-level settings
Rule Priority
More specific rules override broader rules:
- Specific bot rules (highest priority)
- Pattern-based rules
- Category rules
- Global settings (lowest priority)
Rules Summary
The Rules Summary view shows exactly what's being enforced:
- All blocked categories and patterns
- All allowed overrides
- Effective rule set
This is what your site actually enforces—review it to ensure your configuration is correct.
Creating Rules
To Block a Bot or Category
- Find the bot or category in the browse view
- Click to select it
- Choose "Block"
- Save changes
To Allow a Blocked Bot
If a bot is blocked by category but you want to allow it:
- Find the specific bot
- Choose "Allow"
- Save changes
The allow rule overrides the category block.
Pattern-Based Rules
For advanced filtering:
- Create a custom pattern
- Enter a user agent substring or regex
- Set Block or Allow
- Save changes
Path Exclusions
You can optionally exclude certain paths from Traffic Control in your code. This is useful for:
- Health check endpoints
- Admin pages
- Internal APIs
- Public assets
See Traffic Control Guide for implementation details.
Testing Your Configuration
After configuring rules:
- Check Spyglasses dashboard: Review blocked vs. allowed traffic
- Monitor server logs: Verify blocked requests are handled correctly
- Test important bots: Ensure Googlebot and other critical bots can access
- Verify search access: Check Google Search Console for crawl issues
Best Practices
Start Conservative
Begin with minimal blocking:
- Enable "Block AI Model Trainers" if desired
- Monitor traffic for a week
- Add additional rules based on what you observe
Always Allow Search Engines
Ensure legitimate search engines can access your content:
- Googlebot (required for Google Search)
- Bingbot
- DuckDuckBot
- YandexBot (if targeting that market)
Blocking search engines harms your visibility.
Don't Block AI Assistants
If you want AI visibility, don't block AI assistant bots. Block only training crawlers if you want to prevent future AI training while maintaining current AI visibility.
Review Regularly
Periodically review:
- What's being blocked
- Any new bots that appeared
- Whether rules are still appropriate
Monitor Impact
Watch your analytics after making changes:
- Did bot traffic decrease as expected?
- Are there unintended side effects?
- Is legitimate traffic affected?
Troubleshooting
Bot Still Getting Through
If blocked bots still access your site:
- Check if they match an allow rule
- Verify your patterns are correct
- Ensure your integration synced rules
Legitimate Traffic Blocked
If you're accidentally blocking legitimate traffic:
- Add specific allow rules for important bots
- Review custom patterns for overly broad matches
- Check category blocks for unintended coverage
Rules Not Syncing
If changes aren't taking effect:
- Verify your integration is running
- Check for sync errors in logs
- Force a manual sync if available
- Verify API connection
Related
- Traffic Control Guide - Comprehensive implementation guide
- Bot Traffic - See all bot visits
- Bot Directory - Full list of tracked bots
- Getting Started - Install the integration