Simulate crawler User-Agent requests from your terminal
Compare how your public edge responds when a request includes the OAI-SearchBot, Claude-SearchBot, or PerplexityBot User-Agent. Inspect status codes, redirects, response headers, and robots.txt. This is a limited request simulation—not proof that the provider has verified your site as an authorized crawler.
# Run these probes only against a site you own or are authorized to test.
ORIGIN='https://yourdomain.com'
TARGET="$ORIGIN/"
OAI_SEARCH_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot'
CLAUDE_SEARCH_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; Claude-SearchBot/1.0; +claudebot@anthropic.com'
PERPLEXITY_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot'
# Compare status and response headers for common AI search crawler labels.
curl -sS -L --max-redirs 5 -D - -o /dev/null \
-w '\nFinal status: %{http_code}\n' -A "$OAI_SEARCH_UA" -- "$TARGET"
curl -sS -L --max-redirs 5 -D - -o /dev/null \
-w '\nFinal status: %{http_code}\n' -A "$CLAUDE_SEARCH_UA" -- "$TARGET"
curl -sS -L --max-redirs 5 -D - -o /dev/null \
-w '\nFinal status: %{http_code}\n' -A "$PERPLEXITY_UA" -- "$TARGET"
# Read robots.txt, then inspect policy and edge headers on the page response.
curl -sS -i -- "$ORIGIN/robots.txt" | sed -n '1,40p'
curl -sS -D - -o /dev/null -- "$TARGET" | sed -n '1,60p'Compare the initial HTML with the rendered page
Save the document response without executing scripts, then compare it with the page after Chrome has run JavaScript. Look for the main heading, meaningful body text, navigation links, and canonical metadata in the initial response. If these appear only after hydration, a fetcher that does not render JavaScript may see an incomplete page.
PAGE='https://yourdomain.com/important-page'
# Save the initial HTML response and its headers without running page JavaScript.
curl -sS -L --max-redirs 5 -D /tmp/ai-page-headers.txt \
-o /tmp/ai-page.html -- "$PAGE"
printf '\n--- Response status and relevant headers ---\n'
grep -iE '^(HTTP/|content-type:|x-robots-tag:|content-signal:|content-usage:|cf-ray:|cf-cache-status:)' \
/tmp/ai-page-headers.txt
printf '\n--- Initial HTML size and key element tags ---\n'
wc -c /tmp/ai-page.html
grep -oiE '<(title|h1|main)[^>]*>' /tmp/ai-page.html | head -n 20- Open the same URL in Chrome DevTools and select the main document request in the Network panel.
- Compare its response body with the live DOM in Elements; use View page source or the saved file for the pre-JavaScript response.
- Reload with JavaScript disabled in DevTools. If key content disappears, render important text and links in the server response where practical.
Inspect browser-agent capabilities with DevTools
For WebMCP-enabled browser experiences, check whether the current browser exposes the API, then review your page's forms and console or network errors. This read-only Console expression reports capability and form structure; it does not register a tool, submit a form, or prove that a separate agent supports the feature.
({
page: location.href,
readyState: document.readyState,
modelContextPresent: "modelContext" in document,
registerToolAvailable:
typeof document.modelContext?.registerTool === "function",
forms: Array.from(document.forms, form => ({
action: new URL(form.action).pathname,
method: form.method.toUpperCase(),
namedFields: Array.from(form.elements)
.filter(control => control.name)
.map(control => control.name),
labels: Array.from(form.querySelectorAll("label"))
.map(label => label.innerText.trim())
}))
})- Open DevTools on your own page and run the expression in Console.
- Check whether forms have clear labels, expected methods, and named fields. Inspect Console and Network for failed requests or runtime errors.
- Test actual agent actions only in a safe test environment. Require server-side authorization and confirmation before any consequential action.
Verify the fix at the public edge
After changing a CDN rule, rendering strategy, or policy file, retest the deployed hostname and the exact page path. Confirm the final redirect destination, status, content type, relevant headers, and the current robots.txt. Check provider-verified crawler events where available; one User-Agent probe cannot confirm production crawler access.
ORIGIN='https://yourdomain.com'
PAGE="$ORIGIN/important-page"
# Confirm the final URL, status, and content type after a change.
curl -sS -L --max-redirs 5 -o /dev/null \
-w 'status=%{http_code} content_type=%{content_type} final_url=%{url_effective}\n' \
-- "$PAGE"
# Recheck the public policy file and the final response headers.
curl -sS -i -- "$ORIGIN/robots.txt" | sed -n '1,40p'
curl -sS -L -D - -o /dev/null -- "$PAGE" | sed -n '1,60p'- Review CDN/WAF logs for the actual request outcome and challenge or block reason.
- Compare
robots.txt,X-Robots-Tag,Content-Signal,Content-Usage, and any linked RSL license for consistency. - Repeat the initial-HTML and browser checks after deployment; cached responses can differ from the latest origin configuration.