v2.0.1 - AI Bot Redirect Fix
What's Changed
This release fixes the "Direct access detected" error that occurred when AI bots followed WordPress plugin redirects to the AlloIA graph API.
π Bug Fixes
- Enhanced AI bot redirect with domain query parameter
- Added
?domain=client-site.comto redirect URLs - Ensures domain information reaches AlloIA API even when HTTP redirects don't forward custom headers
- Provides guaranteed fallback for
X-Original-Hostheader - Fixes issues with Amazonbot, GPTBot, ClaudeBot, and other AI crawlers
- Added
π§ Technical Details
Problem: HTTP 301 redirects don't forward custom headers (X-Original-Host) to the new location when AI bots follow them.
Solution: Added domain as URL query parameter in redirect URL.
Example redirect URL:
https://www.alloia.io/product/product-slug?domain=client-site.com
π¦ Compatibility
- Requires AlloIA API v1.0.0+ with enhanced domain extraction
- Backward compatible with older AlloIA API versions (headers still sent)
- No configuration changes required
π Upgrade Notes
Simply update the plugin through WordPress admin or download the latest version. The fix works automatically once deployed.
Full Changelog: v2.0.0...v2.0.1