Resolve CloudFront 403 errors for OAI-AdsBot and OAI-SearchBot on Adobe Experience Manager sites

This article explains how to resolve HTTP 403 Forbidden errors encountered by OAI-AdsBot and OAI-SearchBot when accessing Adobe Experience Manager (AEM) sites delivered via CloudFront with a Web Application Firewall (WAF).

Description description

Environment

  • Adobe Experience Manager (AEM)
  • CloudFront CDN
  • Web Application Firewall (WAF)

Symptoms

Requests from bots such as OAI-AdsBot and OAI-SearchBot receive HTTP 403 Forbidden responses when accessing AEM sites. This prevents these bots from crawling and validating landing pages, which is required for campaigns like ChatGPT Ads. Other bots, including AdsBot-Google, Googlebot, and Meta/Facebook crawler, may also be affected if not explicitly allowed.

Cause

This issue typically occurs when WAF or CDN rules are configured to block or challenge these user agents.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Access your CloudFront and WAF (Web Application Firewall) configuration dashboards.

  2. Review all managed rule sets and custom rules to identify any that may block or challenge requests from known bots, especially OAI-AdsBot and OAI-SearchBot.

  3. If a relevant managed rule set is in BLOCK mode, consider switching it to COUNT mode to monitor requests without blocking them.

  4. Add explicit allow rules for the following user agents at the WAF, CDN, or bot management layer:

    • OAI-AdsBot

    • OAI-SearchBot

    • AdsBot-Google

    • Googlebot

    • Meta/Facebook crawler

  5. Where IP-based allowlisting is required, use the official IP ranges provided by the respective bot vendors.

  6. Ensure your robots.txt file allows access for the required bots. For example:

    User-agent: OAI-AdsBot

    Allow: /

    User-agent: OAI-SearchBot

    Allow: /

  7. After making configuration changes, test the affected URLs (such as https://example.com/ or https://example.com/landing-page.html) using the relevant user agents to confirm they are no longer blocked.

  8. Check WAF/CDN logs to verify that requests from these bots are not being blocked or challenged.

  9. Ensure that landing pages return HTTP 200 and are publicly accessible without authentication, CAPTCHA, or other automated-access challenges.

recommendation-more-help
experience-cloud-kcs-help-kbarticles