Stop Guessing and Test Your Robots.txt Directives for GPTBot

How to check whether robots.txt blocks GPTBot
Here is how to check whether robots.txt blocks gptbot: open the live /robots.txt file on the same host as the page you want to test. Find User-agent: GPTBot. If there is no GPTBot group, check User-agent: * instead. Compare that group's Allow and Disallow rules with the page's exact URL path. Disallow: / blocks the whole site for that group, but a more specific Allow rule may permit a page.
GPTBot crawls content that may be used to train OpenAI models. A robots.txt rule tells it whether crawling is permitted; it does not tell you whether your server let it in or whether it has visited. Those are separate checks.
I'm Clayton Johnson, founder of SmallBizSEO. My work in technical SEO and AI search guidance helps small businesses understand how to check whether robots.txt blocks gptbot and what to verify next.

How to check whether robots.txt blocks gptbot for a page
To check a page accurately, read the live robots.txt file for its host, then apply the rules that match GPTBot and that page’s path. A quick text search is not enough: group selection and path specificity matter.
How to check whether robots.txt blocks gptbot in the live file
Fetch robots.txt from the root of the same host as the page. For example, https://smallbizseo.com/robots.txt is separate from a robots.txt file on a subdomain. The rules also apply only to the host, protocol, and port where the file is served.
You can open the file in a browser or fetch it from a terminal with curl -i "https://smallbizseo.com/robots.txt". Check the response status, any redirects, and the returned text. Make sure you are reviewing the deployed file, not a draft in a CMS or repository. A CDN may change the file before serving it.

Look for the exact token User-agent: GPTBot. OpenAI’s crawler documentation explains what its crawlers do and how they are identified. If GPTBot has a matching group, evaluate that group. If it does not, check the wildcard group, User-agent: *.
How to check whether robots.txt blocks gptbot for a specific URL path
Apply the matching group’s rules to the exact path you want to test. For example, a site-wide Disallow: / blocks every path covered by that group, while Disallow: /private/ applies to paths under /private/.
When multiple rules match, the most specific path wins. If an Allow and a Disallow rule match paths of equal length, Allow takes precedence. So a rule like Disallow: /resources/ can block a folder, while Allow: /resources/guides/ can permit a more specific subfolder.
A matching GPTBot group takes priority over User-agent: *; do not assume GPTBot inherits wildcard rules when it has its own group. If you want the same restriction to apply to both, repeat it in the GPTBot group. For a deeper explanation of GPTBot’s purpose and controls, review the crawler’s role before changing your policy.
If robots.txt is missing or returns a 4xx response, compliant crawlers generally treat the site as having no restrictions in that file. A 5xx response or network failure can cause them to assume crawling is disallowed. Check the file’s availability as well as its contents.
Test the server response with curl
A curl request with a GPTBot user-agent can reveal whether your server or CDN responds differently to that label. It does not test robots.txt rules or prove that the request came from OpenAI.
Run curl -i -A "GPTBot" "https://smallbizseo.com/", then repeat the request for a key page and compare it with a normal browser request. Use the actual page URL you want to check. Review the status code, redirects, and response body. A 401, 403, or 429 can indicate an authentication, firewall, or rate-limit restriction. A 200 response is not conclusive if the body contains a challenge, login page, or empty JavaScript shell.

If robots.txt permits the page but the request fails, inspect your CDN and robots.txt policies. A user-agent can be copied by anyone, so this test only shows how your setup responds to that particular request.
Confirm real GPTBot visits and recheck after changes
To confirm actual visits, search your edge and origin access logs for GPTBot requests. Review the requested paths, timestamps, and response codes. A user-agent string alone does not verify the crawler’s identity; compare suspicious requests with the IP information published in OpenAI’s documentation.
Separate requests for /robots.txt from requests for page content. OpenAI may include a robots.txt marker in a user-agent string when fetching the file, which can help you distinguish those requests in logs.
After changing the file, allow about 24 hours for OpenAI’s systems to reflect the update, then fetch the live file and test again. Google Search Console’s robots.txt report can show Google’s fetched file and related issues, but its tests concern Google crawlers, not GPTBot. Our guide to AI crawler governance explains why separate checks matter.
Fix access, preserve AI search visibility, and avoid accidental blocks
A robots.txt allow rule is only one part of access. Check the file, server response, and crawler purpose separately before changing your settings.
What if robots.txt allows GPTBot but the request still fails?
Check CDN bot controls, WAF rules, hosting protections, and firewall settings. Compare the response to a normal request with the one using a GPTBot user-agent, and inspect security logs for the request. Also make sure /robots.txt is served as readable plain text and is not being replaced by a challenge page.
Inspect the page’s raw HTML to confirm its important content is present without relying on JavaScript rendering. A crawler may reach a page but still receive little useful content if the HTML is only an application shell.
Do not remove protections from private pages to make a test pass. Keep confidential or paid content behind authentication; robots.txt is a crawler request, not access control.

Which OpenAI crawler should you allow or block?
Choose separately for training, search, and user-triggered visits. GPTBot collects content that may be used to train OpenAI models. OAI-SearchBot helps surface pages in ChatGPT search. ChatGPT-User fetches pages in response to user actions and may not follow robots.txt in the same way as automatic crawlers.

Blocking GPTBot does not, by itself, block ChatGPT search citations. Blocking OAI-SearchBot can prevent pages from appearing in ChatGPT search answers. OpenAI treats these controls independently, so decide which purpose you want to permit before editing rules.
Common mistakes include:
- Adding
Disallow: /toUser-agent: *when you meant to block only one crawler. - Assuming a GPTBot-specific group also inherits restrictions from the wildcard group.
- Missing a path-specific rule that blocks an important page or resource.
- Testing robots.txt on the wrong hostname or subdomain.
- Treating robots.txt as a security measure instead of using authentication for protected content.
If you want training crawls restricted while preserving search access, write separate rules for GPTBot and OAI-SearchBot, then test the exact pages you care about. A technical SEO audit can help identify crawler-access issues alongside other technical barriers.