Platform Guide · Updated 2026-12-01

How to Allow OAI-AdsBot on Vercel & Next.js for ChatGPT Ads

Configure Vercel Firewall bypass rules, disable Deployment Protection on ad URLs, fix CSR-only React shells, and set Next.js robots.ts.

Why Vercel / Next.js landing pages get rejected

Modern Jamstack and Next.js sites on Vercel most often fail ChatGPT Ads landing page checks for four reasons: Vercel Firewall challenges (especially Attack Challenge Mode or Bot Protection), Deployment Protection left enabled on preview/staging URLs, client-side-only React pages that return an empty HTML shell without JavaScript, or Middleware geo-redirects.

Step 1: Allow OAI-AdsBot in Vercel Firewall

Open Vercel Dashboard → your Project → Firewall → Configure. Check Firewall logs for challenged or denied requests matching OAI-AdsBot or your landing page path.

If Attack Challenge Mode or a custom bot/rate-limit rule is active, create a Firewall Custom Rule with Action: Bypass matching User-Agent contains OAI-AdsBot combined with OpenAI’s published IP CIDR blocks from https://openai.com/adsbot.json.

Step 2: Confirm Deployment Protection is off for the submitted URL

Never submit a *.vercel.app preview URL protected by Vercel Authentication or Password Protection—OAI-AdsBot will hit a login screen (HTTP 401/403) and fail immediately. Always submit your public production domain and verify Settings → Deployment Protection does not gate production routes.

Step 3: Serve real SSR / static HTML (not an empty #__next or #root shell)

If your landing page uses a Vite SPA or a Next.js page that fetches product copy inside useEffect, the initial HTML returned to OAI-AdsBot may contain only <div id="root"></div> and a script bundle.

Move your core headline, value proposition, pricing, and legal/contact links into Next.js Server Components, getStaticProps/generateStaticParams, or prerendered HTML so the content is readable with JavaScript disabled.

Step 4: Configure app/robots.ts and audit middleware.ts redirects

Check middleware.ts (or vercel.json redirects) so you do not geo-redirect US-based crawlers to another domain or block ?utm_source=openai query parameters. In Next.js App Router, explicitly allow OAI-AdsBot in app/robots.ts:

// app/robots.ts (Next.js App Router)
import type { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
  return {
    rules: [
      { userAgent: 'OAI-AdsBot', allow: '/' },
      { userAgent: 'OAI-SearchBot', allow: '/' },
      // Optional: opt out of model training while allowing ads review
      { userAgent: 'GPTBot', disallow: '/' },
      { userAgent: '*', allow: '/' },
    ],
  };
}

Verify your Vercel landing page now

Test whether OAI-AdsBot gets HTTP 200, passes robots.txt (including ?utm_source=openai), and sees real static HTML. No scripts executed and no Pixel events fired.