Skip to main content

Robots.txt on Five Live Directories: What They Block

We read the robots.txt of Product Hunt, G2, Capterra, Trustpilot and YellowPages on 15 September 2026. What each one blocks, and three dead lines.

DirectoryLaunch Team13 min read

Most directories write robots.txt once, in the first week, before there is anything in the catalogue to protect. Then the site grows from 400 listings to 40,000, the filter bar gains four more controls, and nobody opens the file again.

So we opened five of them. On 15 September 2026 we fetched the robots.txt of Product Hunt, G2, Capterra, Trustpilot and YellowPages, along with the sitemaps those files declare. What follows is what each one blocks, the rule that separates a filter worth indexing from one that is just noise, the three lines across the five files that do nothing at all, and the comment Product Hunt left in their own file that explains pattern matching better than most guides.

Everything below was read off the live files on that date. Where a claim is about how Google treats a rule, the source is Google's robots.txt specification, last updated 31 August 2026.

Trustpilot's file ends by blocking everybody

The last group in Trustpilot's robots.txt is two lines:

User-agent: *
Disallow: /

Above it sit roughly twenty named groups, one each for Googlebot, bingbot, DuckDuckBot, Baiduspider, facebookexternalhit and a dozen others, all carrying the same long deny list. Below that, a second block of names gets Disallow: / outright, including Yandex, CCBot, Bytespider, anthropic-ai and cohere-ai.

The shape only makes sense once you know how groups are matched. Google picks exactly one group per crawler, the one with the most specific matching user-agent, and the order of groups in the file is irrelevant. Specific groups and the global * group are never merged. So that final pair of lines is not a catch-all safety net applied to everyone. It is the rule for every crawler Trustpilot did not name.

That inverts the usual posture. A typical directory allows everything and blocks a handful of paths; Trustpilot blocks everything and allows a list. For a site whose entire asset is structured review data, that is a defensible trade, and it costs one line to make.

It also costs maintenance forever. Every new legitimate crawler, every rename, every search engine you have not heard of yet arrives blocked until someone edits the file. If your directory is eighteen months old and still fighting for discovery, you want the opposite default. Trustpilot can afford the stricter one. Nobody needs to discover Trustpilot.

Every filter parameter, written out by name

Trustpilot's deny list reads like a screenshot of their own filter bar. Twelve query parameters are blocked by name: languages, stars, sort, verified, topics, replies, date, trustscore, claimed, country, location and subcategories.

G2 takes the same approach with different targets. Sorting and formatting go (format=pdf, locale), and so does a long run of tracking parameters: utm_, gclid, gad_source, fbclid, msclkid, hsa_, __hstc, __hssc, __hsfp, _hsenc and a bare ref=. Capterra blocks *sort_options=, *?variant=, *?exp= and *?preview.

Not one of the three does the obvious lazy thing, which would be to block any URL containing a question mark. They enumerate instead. Some parameterised URLs are pages they want in the index, and Capterra makes that explicit: its sitemap set includes a dedicated feature-filters/sitemap.xml, so filter pages are being submitted on purpose while sort parameters are being kept out.

The line those three files draw is worth stealing. A control that changes which listings appear can be a page worth indexing. A control that changes the order or the presentation of the same listings never is.

A blocked page cannot tell Google it is noindex

Google's documentation is blunt about this: a page disallowed in robots.txt can still be indexed as a URL, shown without a snippet, because the crawler never fetched the page and never saw the tag. Blocking a thin facet in robots.txt is not the same as noindexing it. Pick one, and know which problem you are solving.

That distinction is why our own local SEO pages handle thin combinations at the page level rather than in robots.txt. The minListingsToIndex setting defaults to 3. A city-and-category combination below that still renders and stays crawlable, and it carries noindex, which Google can only act on by fetching the page. Block the path instead and you hand Google a URL it can see linked, cannot fetch, and has no instruction about. That failure mode has a name in Search Console, and we took it apart in Discovered — currently not indexed.

G2 and Capterra point opposite ways on AI crawlers

Two directories in the same category, both selling software listings, have written policies that contradict each other line for line.

G2 gives GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, Amazonbot and CCBot a group of their own. That group repeats everything in the general deny list and then adds more: all five localised trees (/de/, /fr/, /es/, /pt/, /it/), the three-way comparison URLs, and Disallow: /products/*/reviews/*. The review pages are the product. Googlebot may crawl them. The AI crawlers on that list may not, and Bytespider and DeepSeekBot sit in a separate block with Disallow: /.

Capterra does the reverse, and does it with explicit permission rather than silence. GPTBot, ChatGPT-User, OAI-SearchBot, OAI-AdsBot, ClaudeBot, PerplexityBot and Google-Extended each get a group containing a single rule: Allow: /.

CrawlerG2CapterraTrustpilot
GPTBotgeneral list plus locales and reviewsAllow: /same rules as Googlebot
ClaudeBotgeneral list plus locales and reviewsAllow: /same rules as Googlebot
Google-Extendedgeneral list plus locales and reviewsAllow: /same rules as Googlebot
PerplexityBotnot named, falls to *Allow: /same rules as Googlebot
CCBotgeneral list plus locales and reviewsnot namedDisallow: /
BytespiderDisallow: /not namedDisallow: /

Capterra's version has a side effect that may or may not be deliberate. Because specific groups and the * group are never combined, an AI crawler reading Allow: / is not subject to any of the rules written for everyone else. It may crawl /search, /forms, /redirector/ and the paid-click paths that the general crawler is kept away from. One line of generosity opened every door in the building.

Whatever posture you pick, pick it per crawler and know which ones fetch for training and which fetch to answer a question that is being asked right now. We went through that split in how directories get cited in AI answers.

The comment Product Hunt left in their file

Product Hunt's robots.txt contains four rules with a $ on the end, and above them a comment explaining why. Paraphrased: the dollar sign anchors the match, so post and forum slugs that merely start with "new" stay crawlable.

They are right, and the reason catches people constantly. Path matching is prefix matching. Google's own documentation spells it out with a worked example: Disallow: /fish matches /fish, /fish.html, /fish/salmon.html and /fishheads. Without the anchor, Disallow: /p/new would have removed every Product Hunt post whose slug begins with those three letters. That includes /p/news. Nothing would have reported it.

Three more things are visible in the same file. A trailing wildcard does nothing, because /search* and /search are the identical rule to Google. An Allow: can carve an exception out of a broader Disallow:, which is how Product Hunt blocks the /r/* shortlink redirector while keeping /r/p/* open. And a pattern like Disallow: /@*/* blocks everything under a profile while leaving the profile root itself crawlable.

Open your own file and check those three shapes. Any Disallow: whose path is a prefix of a real slug is the one that will hurt you, and it will never show up as an error anywhere.

Three lines across the five files do nothing

Host: www.yellowpages.com. YellowPages closes with it. Google supports four fields — user-agent, allow, disallow and sitemap — and ignores everything else, including crawl-delay. The line is inert.

Allow: *, also YellowPages. It is the only rule in their Twitterbot group. Path values are required to start with /, and a rule without a usable path is ignored. But the group still does something, because naming Twitterbot at all removes it from the * group, and none of the sitewide restrictions apply to it any more. The user-agent line did the work; the rule under it did not.

Sitemap: https://www.g2.com/llms.txt. The sitemap field expects a sitemap. The protocol accepts XML, an RSS or Atom feed, or a plain text file of one URL per line. A markdown document is none of those, and it is being announced through the one field in robots.txt that promises otherwise.

There is a fourth trap none of these five fell into, but it is worth knowing because files get edited. The parser ignores any field that is not allow, disallow or user-agent, and Google documents the consequence directly: drop a Sitemap: line between two User-agent: lines and the two user agents merge into one group. A tidy-up commit that moves sitemap declarations around can rewrite your crawl rules by accident.

Where the Sitemap lines point

Five directories, five different answers, and the differences are structural rather than cosmetic.

Product Hunt declares ten sitemaps, all gzipped, split by content type: stories, topics, newsletters, forums, discussions, and four separate product sets for about pages, alternatives, reviews and categories. Splitting by type is what lets you read coverage per type in Search Console instead of one aggregate number that tells you nothing.

Capterra declares one, which turns out to be an index listing twelve further indexes. That nesting is worth a second look before you copy it: the sitemaps protocol says a <loc> inside an index points to a sitemap, an Atom or RSS feed, or a text file, and an index is not on that list.

Trustpilot declares three, and the main one lives on sitemaps.trustpilot.com while robots.txt lives on www.trustpilot.com. That is the documented cross-submission mechanism rather than a mistake. Pointing at another host from your robots.txt is how you prove you control both, which means the file is doing two jobs at once.

G2 declares two gzipped indexes, plus the llms.txt line above.

YellowPages declares nothing at all. Whatever they submit, they submit through Search Console and Bing Webmaster Tools, which works, and which also leaves every other engine to find the catalogue by crawling.

What our boilerplate ships, and what it leaves to you

This is the whole robots rule set in the DirectoryLaunch source:

// app/robots.ts
export default function robots(): MetadataRoute.Robots {
  return {
    rules: [
      {
        userAgent: "*",
        allow: "/",
        disallow: ["/api/", "/admin/"],
      },
    ],
    sitemap: `${BASE_URL}/sitemap.xml`,
  }
}

Four rules. It keeps crawlers out of the API routes and the admin panel, declares the sitemap, and allows everything else. That is the right default for a directory whose problem is being found rather than being scraped, and it is honestly less than what the five sites above run. There is no search-results block in it, no parameter handling, and no AI-crawler policy, because those three depend on decisions we cannot make for you.

Here is the version worth growing into. It is written out as plain robots.txt rather than as the Next.js object, because the shapes of the rules matter more than the syntax you generate them with:

User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/
Disallow: /search
Disallow: /*?sort=
Disallow: /*?view=
Disallow: /*?utm_

# Training crawlers, decided separately from search crawlers
User-agent: CCBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

Note what is absent. No category or city path is blocked, because those are the pages the whole build exists to produce. Thin ones get noindex from minListingsToIndex and stay crawlable so Google can read the instruction.

Start with the prefix check

Do this in the order the damage runs.

  1. Fetch your own robots.txt and read every Disallow: path as a prefix. Anything that is the leading substring of a real slug needs a $ or a trailing slash today. This is the only item on the list that can be losing you pages right now without a single error appearing anywhere.
  2. List the query parameters your filter UI can produce, then sort them into filters and presentation controls. Block the presentation controls by name. Leave the filters alone until you have decided, page by page, which ones deserve to be indexed.
  3. Check whether anything you block in robots.txt also carries a noindex tag. If it does, you have cancelled the tag; unblock the path or drop the tag.
  4. Decide your AI-crawler line explicitly, per crawler, and write it down even if the decision is "allow everything". Silence is also a policy, and it is the one you will not remember making.
  5. Make sure there is a Sitemap: line. YellowPages can skip it. You cannot.
  6. Re-read the file after any commit that reorders it, because a sitemap line in the wrong place merges two groups.

If you would rather not own any of this, that is a real option and worth saying out loud: a WordPress directory with an SEO plugin will generate robots.txt and sitemaps for you, and you will never open either file. The trade is that you also cannot change what they generate. Every rule above assumes you want the file in your repository, in a diff, next to the code that creates the URLs it governs.

Sources read on 15 September 2026: producthunt.com/robots.txt, g2.com/robots.txt, capterra.com/robots.txt, trustpilot.com/robots.txt, yellowpages.com/robots.txt (unlinked, because it answers a command-line client with a 403 and only serves a browser), and the sitemaps.org protocol. We tried Yelp and AlternativeTo as well; both returned nothing to our fetcher, so neither is in the audit.