# The Wall Street Journal now disallows every bot by default and keeps an allowlist of crawlers in robots.txt. I want to do the same on my site: block everything, then let in search engines, link previews and the AI crawlers I have a reason to allow. How do I write that file so it actually works, and what does it not protect me from?

**Short answer:** Put a User-agent: * group with Disallow: / at the top, then one group listing every crawler you want to let in, each on its own User-agent line, followed by the Allow and Disallow rules they share. Under RFC 9309 and Google's documentation, a crawler follows only the most specific group that names it and ignores the * group, so any bot not named gets Disallow: /. The Wall Street Journal's file, read November 27, 2026, works this way: 62 named crawlers share one rule set, including Googlebot, Bingbot, Applebot, GPTBot, OAI-SearchBot and ChatGPT-User, while ClaudeBot, PerplexityBot and Google-Extended aren't named and fall under the block. Two cautions. Blank lines between the User-agent lines are allowed by RFC 9309, but Python's urllib.robotparser before 3.13.14 and 3.14.5 treats a blank line as the end of a group, so tools built on older Python read the Journal's file as blocking every crawler, Googlebot included. Keep the list in one unbroken block. And robots.txt is a request, not a lock: a scraper that ignores it or claims to be Googlebot still gets the page unless your server or CDN verifies who is asking.

## Checklist
1. Start with User-agent: * and Disallow: /. Every crawler without a group of its own falls into this one.
2. Write one group for the crawlers you allow: a run of User-agent lines, one token per line, then the shared Allow and Disallow rules. Keep the run unbroken, with no blank lines inside it.
3. Name search crawlers by their exact tokens (Googlebot, Bingbot, Applebot, DuckDuckBot) and decide on AI tokens one by one: training (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended), search (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and user fetches (ChatGPT-User, Claude-User, Perplexity-User).
4. Remember link previews and partners: facebookexternalhit, Twitterbot, LinkedInBot, Slackbot, ad verification and SEO tools you use stop working once the * group blocks them.
5. Inside the allowed group, keep Disallow lines for login, account, search and email-signup paths, as the Journal does.
6. Test the file with more than one parser, including the one your own tools use, and check a token you didn't name comes back blocked and one you did comes back allowed.
7. Back it with enforcement: verify Googlebot and Bingbot by reverse DNS or published IP lists, check Web Bot Auth signatures where crawlers send them, and block or challenge unverified traffic at the CDN.

## How is the Wall Street Journal's default-deny robots.txt allowlist built?
- Dow Jones told Nieman Lab, in a story published November 24, 2026, that since May it disallows all bots by default on its consumer news sites, including the Wall Street Journal, Barron's and MarketWatch, and keeps a whitelist of selected crawlers instead of blacklisting bots one at a time. Its chief development officer said the change signals that third parties must negotiate and partner directly for content access. Nieman Lab reports the Journal's list holds more than 60 bots, including three operated by OpenAI, which has a licensing deal with News Corp, Dow Jones's parent company.
- The file at wsj.com/robots.txt, read November 27, 2026, opens with a notice that automated collection needs written permission, then User-agent: * with Disallow: /. After that come 62 User-agent lines for named crawlers: Google's search, image, video, ads and inspection crawlers plus GoogleOther and Google-CloudVertexBot, Bingbot, Applebot, DuckDuckBot, Yahoo, Baidu, Yeti, Seznam, Qwant and Mojeek, ad-verification and analytics bots, SEO tools such as AhrefsBot and SemrushBot, OpenAI's ChatGPT-User, GPTBot and OAI-SearchBot, and link-preview fetchers such as facebookexternalhit, Twitterbot and LinkedInBot. One shared rule set follows: Allow: / with 49 Disallow lines for login, account, search, email and marketing paths. Barron's and MarketWatch use the same pattern with 78 named crawlers each.
- What isn't named is blocked. ClaudeBot, Claude-SearchBot, PerplexityBot, Amazonbot, CCBot, Bytespider, Meta's crawlers and Google-Extended have no group, so they get Disallow: /. For Google that split matters: Googlebot is allowed for search, while Google-Extended, the token Google reads for Gemini training and grounding, is not named and so is disallowed.

## Why can blank lines between User-agent lines break a robots.txt allowlist in some parsers?
- The Journal's file has blank lines inside its allowed group: runs of User-agent lines separated by empty lines, then the shared rules. RFC 9309, the robots.txt standard, allows this. Its grammar lets a group start with a User-agent line, then take more User-agent lines or empty lines, then rules or empty lines, so all 62 names share the one rule set. Google's documentation says you group rules for several crawlers by repeating User-agent lines, and that each crawler follows only the group with the most specific user agent that matches it.
- Older parsers read it differently. Python's urllib.robotparser in 3.13.5, run on the Journal's file on November 27, 2026, returned blocked for GPTBot, Googlebot, Bingbot, Applebot and facebookexternalhit, because that version ends a group at a blank line and drops User-agent lines that haven't reached a rule yet, so every crawler falls to the * group. Protego, the RFC 9309-based parser used by Scrapy, on the same file allows the named crawlers and blocks the rest. CPython's pull request 138908, merged May 4, 2026, made empty lines always ignored instead of separating groups; it first shipped in Python 3.14.5 and 3.13.14 and is part of 3.15.
- Google's own crawlers follow its documented reading, so the Journal's search traffic isn't at risk. The risk is everything else: SEO audit tools, scrapers that try to be polite, in-house monitoring and AI agent libraries that check robots.txt with an older parser and conclude your whole site is closed. Writing the allowed group as one unbroken run of User-agent lines works the same in every parser.

## What doesn't a default-deny robots.txt stop?
- Robots.txt is guidance a crawler chooses to follow. Nieman Lab notes it's neither a hard technical block nor a binding contract, and Slate's VP of technology told it that several bots kept crawling after Slate disallowed them. A scraper that ignores the file, or sends Googlebot's user agent from its own servers, gets the page unless something checks.
- Google's documentation also says the Robots Exclusion Protocol doesn't apply to its crawlers that users control or that protect user safety, and other operators treat fetches made for a person's request differently from crawling. A default-deny file covers automated crawlers that honor it, not every request an AI product makes.
- So pair the file with checks you control: confirm search crawlers by reverse DNS or the operator's published IP ranges, verify Web Bot Auth signatures where agents send them, and block or rate-limit everything that claims to be an allowed crawler but can't prove it. Watch your logs for named tokens hitting disallowed paths and for new AI crawlers worth adding to the list.

## Ask Rightshold (free, no key)
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code (one-click setup: https://www.rightshold.com/start?ref=seo), then ask: "Our robots.txt now blocks everything with User-agent: * and allows a list of named crawlers. Which AI crawlers, search crawlers and user fetchers does it actually let in, and which fall through to the * group?"

```json
{
  "tool": "read_ai_policy",
  "arguments": {
    "domain": "example.com"
  }
}
```
- Free, no key, cached about 6 hours. For each AI crawler, search and user-fetch token it reports whether the path is allowed and which group matched; matched_group "*" means the crawler has no group of its own and gets your Disallow: /. Its parser follows RFC 9309, so blank lines inside a group don't split it.
- It reports what your files say, not which crawlers obey them or who actually fetched your pages.

_Rightshold reads a site's public crawl and AI-use signals. It isn't affiliated with Dow Jones, Google or the Python Software Foundation and can't make any crawler honor robots.txt. The Journal, Barron's and MarketWatch files are as served on November 27, 2026, and parser results are from tests run that day on Python 3.13.5 and Protego; files and parsers change. Not legal advice._

## Sources
- [Nieman Lab: The Wall Street Journal joins a growing list of publishers disallowing bots by default (November 24, 2026)](https://www.niemanlab.org/2026/11/the-wall-street-journal-joins-growing-list-of-publishers-disallowing-bots-by-default/)
- [The Wall Street Journal robots.txt (read November 27, 2026)](https://www.wsj.com/robots.txt)
- [Barron's robots.txt (read November 27, 2026)](https://www.barrons.com/robots.txt)
- [RFC 9309: Robots Exclusion Protocol (section 2.1, group grammar)](https://www.rfc-editor.org/rfc/rfc9309.html)
- [Google: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt)
- [CPython pull request 138908: Support RFC 9309 in robotparser (merged May 4, 2026)](https://github.com/python/cpython/pull/138908)
- [Python documentation: urllib.robotparser](https://docs.python.org/3/library/urllib.robotparser.html)

## Related
- [How to block AI training crawlers in robots.txt without leaving AI search](https://www.rightshold.com/answers/how-to-block-ai-training-crawlers-in-robots-txt-without-leaving-ai-search)
- [Why an AI training opt-out or robots.txt is not access control](https://www.rightshold.com/answers/why-an-ai-training-opt-out-or-robots-txt-is-not-access-control)
- [Does Crawl4AI obey robots.txt, and why doesn't a Crawl4AI Disallow rule stop it?](https://www.rightshold.com/answers/does-crawl4ai-obey-robots-txt-and-why-doesnt-a-crawl4ai-disallow-rule-stop-it)
- [How to catch crawlers that ignore robots.txt with a disallowed trap URL](https://www.rightshold.com/answers/how-to-catch-crawlers-that-ignore-robots-txt-with-a-disallowed-trap-url)

_Not legal advice. Updated 2026-11-27. JSON: https://www.rightshold.com/answers/how-do-you-block-all-bots-in-robots-txt-and-allow-only-the-ones-you-choose-like-the-wall-street-journal.json_