Skip to content

v2.0.1 - AI Bot Redirect Fix

Choose a tag to compare

@alaboudreau alaboudreau released this 27 Jan 20:49
· 13 commits to main since this release

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.com to redirect URLs
    • Ensures domain information reaches AlloIA API even when HTTP redirects don't forward custom headers
    • Provides guaranteed fallback for X-Original-Host header
    • Fixes issues with Amazonbot, GPTBot, ClaudeBot, and other AI crawlers

πŸ”§ 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