Description
aiMiles detects AI agents visiting your WordPress site and allows you to serve them sponsored content.
How It Works
- When any request hits your site, the plugin checks the User-Agent header
- If it matches a known AI bot signature (25+ supported), the plugin logs the visit
- For AI bot visits, sponsored content is injected into the HTML (invisible to humans, readable by AI)
Supported AI Agents
- GPTBot (OpenAI)
- ChatGPT-User (OpenAI)
- ClaudeBot (Anthropic)
- Claude-Web (Anthropic)
- PerplexityBot (Perplexity)
- Google-Extended (Google)
- Meta-ExternalAgent (Meta)
- AppleBot-Extended (Apple)
- ByteSpider (ByteDance)
- CCBot (Common Crawl)
- And 15+ more
Configuration
Enable/Disable
Toggle detection and injection on/off.
Injection Content
Enter the sponsored content you want AI agents to see.
API Key (Optional)
Connect to the aiMiles marketplace for dynamic, targeted ad content at https://aimiles.ai
External services
This plugin connects to the aiMiles API (https://app.aimiles.ai) to fetch sponsored content and log AI agent visits. An API key is required to use this service.
Data sent to the API
When an AI agent is detected visiting your site, the plugin sends the following data to https://app.aimiles.ai/api/visits:
- Your API key (for authentication)
- The detected AI agent name and company
- The requested page URL
- Your site URL
- The visitor’s User-Agent header
This data is sent on every AI agent page visit.
Sponsored content retrieval
The plugin requests sponsored content from https://app.aimiles.ai/api/sponsored_texts using your API key. This happens on every AI agent page visit.
Service provided by aiMiles: Terms of Service, Privacy Policy.
Installation
- Download and unzip the plugin
- Upload the
aimilesfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > aiMiles to configure
FAQ
-
What AI agents are supported?
-
Over 25 AI agents including GPTBot, ClaudeBot, PerplexityBot, Google-Extended, and more.
-
Will this affect regular visitors?
-
No, the injected content is invisible to human visitors and only readable by AI agents.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“aiMiles – AI Agent” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “aiMiles – AI Agent” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1.0
- Initial release