# ===================================================================== # robots.txt — Alpha-File # # Three-tier policy: # 1. Disallow SEO-analytics + scraper bots entirely (they crawl # heavily, provide zero SEO value to us — they exist to power # other people's competitor-analysis dashboards). # 2. For everyone else (Googlebot, Bingbot, end users), allow most # of the site BUT disallow the cardinality-explosion paths # (/cusip/*, parameterized search) that balloon crawl frontier # without adding unique indexable content. # 3. Per-user / auth pages disallowed for all crawlers — they # redirect to sign-in anyway. # # 2026-05-22 update: added Tier 1 (block bad bots) after observing # AhrefsBot + SemrushBot crawling /cusip/ at ~2 sec / req of # Postgres compute. Combined with the cardinality of CUSIPs (~1M # possible URLs), they were a meaningful fraction of the Neon bill. # ===================================================================== # ---- 1. Block the heavy SEO-analytics crawlers entirely ------------ # # These are well-behaved bots that obey robots.txt (we confirmed in # the logs). They crawl to build OTHER PEOPLE'S competitor-analysis # products. Alpha-File gains nothing from their crawl and pays the # server cost. Net: block. User-agent: AhrefsBot Disallow: / User-agent: SemrushBot Disallow: / User-agent: MJ12bot Disallow: / User-agent: DotBot Disallow: / User-agent: PetalBot Disallow: / User-agent: dotbot Disallow: / User-agent: BLEXBot Disallow: / User-agent: SeznamBot Disallow: / # 2026-08-07: YandexBot was not listed at all, so it fell through to # `User-agent: *` → Allow: / and crawled the most expensive profiles # unthrottled. Measured that day: /manager/…state-street-corp 101s and # /manager/…versor-investments-lp 105s, both ending in a 502. # # Not blocked outright — unlike the SEO-analytics bots above it is a # real search engine, so it gets the same restricted treatment as # OAI-SearchBot below: the finite research surfaces stay crawlable, # the high-cardinality routes do not, and Crawl-delay caps the rate # (Yandex honors Crawl-delay; Google ignores it, Bing honors it). User-agent: YandexBot Allow: /manager/ Allow: /mutual_fund/ Allow: /manager-groups/ Allow: /content/ Allow: /sitemap.xml Allow: /sitemaps/ Disallow: / Crawl-delay: 30 User-agent: rogerbot Disallow: / User-agent: Barkrowler Disallow: / # OpenAI's training crawler remains blocked. Search-time discovery is # handled separately below so public manager research can be cited in # ChatGPT Search without opting the site into model training. User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / # 2026-05-29: Anthropic's SEARCH-time bot (distinct from ClaudeBot above, # which is the training crawler). UA = "Claude-SearchBot/1.0". This bot # was responsible for ~95% of bandwidth in the 2026-05-24 07:00 UTC spike # (3 GB / hour) — pulling /manager/ pages at 0.5-3 MB each from # IPs in 216.73.216.0/22. Anthropic states it honors robots.txt. # Retrieval is now restricted to finite research pages, slowed to one request # every 10 seconds, and watched by the hourly bot-protection monitor. User-agent: Claude-SearchBot User-agent: Claude-User Allow: /manager/ Allow: /mutual_fund/ Allow: /manager-groups/ Allow: /content/ Allow: /sitemap.xml Allow: /sitemaps/ Disallow: / Crawl-delay: 10 User-agent: CCBot Disallow: / User-agent: anthropic-ai Disallow: / User-agent: Google-Extended Disallow: / # 2026-05-29: AI search / training crawlers in the same category as the # ones above — all opt-out for the same reasons (curated investor data, # not for model training; SEO value is via Googlebot/Bingbot, not these). User-agent: PerplexityBot Disallow: / User-agent: Perplexity-User Disallow: / # OpenAI's search crawler: allow only the finite, high-value research # surfaces. The longer Allow paths win over Disallow: /, preventing it # from entering high-cardinality stock/search routes while still making # manager profiles, fund profiles, content, and the sitemap discoverable. User-agent: OAI-SearchBot Allow: /manager/ Allow: /mutual_fund/ Allow: /manager-groups/ Allow: /content/ Allow: /sitemap.xml Allow: /sitemaps/ Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: Bytespider Disallow: / User-agent: Amazonbot Disallow: / # 2026-08-07: Amazon's SEARCH crawler is a DIFFERENT UA token from # `Amazonbot` above ("Amzn-SearchBot/0.1"), so it was never covered by # that rule and fell through to `User-agent: *` → Allow: /. Measured # that day it was walking deep /mutual_fund/S… pages at 36s, 54s and # 66s per request, several of which hit the Rack timeout and 502'd. # Same rationale as Amazonbot: it feeds Amazon product/shopping search, # which sends this site no traffic worth that compute. User-agent: Amzn-SearchBot Disallow: / User-agent: meta-externalagent Disallow: / # 2026-06-06: meta-webindexer (Meta's link/share indexer, UA # "meta-webindexer/1.1") — distinct from meta-externalagent above. It was # crawling the faceted homepage filter URLs (/?tag_ids[]=...&sort=...&dir=...) # combinatorially at ~100 KB/response and was the dominant driver of the # Render bandwidth overage (the 25 GB Pro allotment exhausted). Zero SEO # value to us; block entirely. Meta crawlers honor robots.txt. User-agent: meta-webindexer Disallow: / User-agent: cohere-ai Disallow: / # ---- 1b. Social / link-preview crawlers — ALLOW everywhere -------- # # 2026-06-22: these fetch ONLY the single URL being shared (to build a # link-preview card) — they do NOT crawl, so the /cusip/ crawl-cost # concern (Tier 2 below) doesn't apply to them. A more specific UA group # wins over `*`, so this lets a shared /cusip/ (or any) link render # a preview card on X / Facebook / LinkedIn / Slack / Discord / Telegram # instead of showing nothing. (The Share button itself now emits the # pretty /stocks/ URL; this also covers links pasted by hand.) User-agent: Twitterbot Allow: / User-agent: facebookexternalhit Allow: / User-agent: LinkedInBot Allow: / User-agent: Slackbot Allow: / User-agent: Slackbot-LinkExpanding Allow: / User-agent: Discordbot Allow: / User-agent: TelegramBot Allow: / User-agent: WhatsApp Allow: / # ---- 2. Default policy for everyone else (Googlebot, Bingbot, etc) - User-agent: * Allow: / # Don't index per-user state pages (they redirect to sign-in for visitors anyway). Disallow: /users/ Disallow: /watchlists/new Disallow: /watchlists/*/edit # Don't index data-only JSON endpoints (they're machine-readable, no value # in a search index). Disallow: /data/ # Don't index high-cardinality / parameterized search URLs (they balloon # the crawl set without adding unique content above /search/managers itself). Disallow: /search/managers? Disallow: /search/reverse? # 2026-10-14: every screener filter permutation is a full universe overlay # (~2.7 s of Neon time each) with noindex content. The bare page stays crawlable. Disallow: /screens/custom? # The bare letters index and individual content pages remain crawlable. Filter # combinations repeat the same content in thousands of expensive URL variants. Disallow: /letters? # 2026-09-28: the pitches gallery has the same filter permutations. Disallow: /letters/pitches? Disallow: /letters/pitches/filters # 2026-06-06: disallow the faceted manager-filter URLs on the homepage. # tag_ids[] / sort / dir / page params combine into a near-infinite set of # unique URLs (each ~100 KB) — a crawl trap that exhausted the Render # bandwidth allotment with no unique indexable content beyond the bare "/". # Wildcard `*` matches the leading ? or & so param order doesn't matter # (honored by Googlebot, Bingbot, and all major crawlers). Disallow: /*tag_ids Disallow: /*sort= Disallow: /*dir= # 2026-08-01: narrowed from `Disallow: /*page=` to the HOMEPAGE query # string only. The leading `/*` matched EVERY path, so it also blocked # /letters?page=2, /books?page=2 and every other paginated list - which # orphaned ~8.5k letter / presentation / transcript pages entirely (they # were also absent from the sitemap, so they had NO crawl path at all). # `/?*page=` still kills the homepage facet crawl-trap this rule was # added for, since that trap is always rooted at "/". The companion fix # is /sitemaps/content.xml, which now lists those pages directly. Disallow: /?*page= # 2026-05-22: disallow /cusip/* universally. ~1M+ possible CUSIPs, # each page is 1.5-2 sec of DB compute, low SEO value (search intent # for "9-digit CUSIP" is essentially nonexistent — humans look up by # ticker or company name on /stocks). The stock-symbol pages (/stocks # /) are still indexable for the SEO path. /cusip is for internal # linkage and direct paste. Disallow: /cusip/ # Insider Activity: the bare /insiders landing page stays crawlable (it is # in the sitemap). Filter combinations, CSV/XLSX, the transactions tape, # pagination, and FILTERED per-person URLs are a combinatorial crawl trap of # multi-second aggregates. robots.txt is guidance, not enforcement. # # 2026-11-08: the CLEAN person page /insiders/<10-digit CIK> is crawlable. # /people/ 301s there (#8137), so blocking it hid every person page # from Google. Precedence is longest-match: "/insiders/*?" (12 chars) beats # "/insiders/0" (11), so ?code=/?days= filter variants stay blocked, and # /insiders/transactions, /share.png, /all stay under "/insiders/". # Padded CIKs always start with 0 (CIKs are < 10 digits). Disallow: /insiders? Disallow: /insiders/ Allow: /insiders/0 Disallow: /insiders/*? Disallow: /insiders.csv Disallow: /insiders.xlsx # 2026-09-28: the same filter crawl trap on the stock page's Insiders tab. # ~40 filter permutations of a few tickers in 90s, 2-96s of database time # each. The bare /stocks//insiders tab stays crawlable; only filtered # variants are disallowed. Enforced for non-compliant crawlers in Throttle. Disallow: /stocks/*/insiders? # Keep canonical corporate-action pages discoverable, but avoid filter # permutations and downloadable data exports. Browser access is unaffected. Disallow: /stocks/*/insiders.csv Disallow: /stocks/*/insiders.xlsx Disallow: /corporate-actions? Disallow: /corporate-actions/ipo-calendar? # Foreign-stock overview pages remain indexable; the corporate-action tab's # query variants repeat expensive filters without unique search content. Disallow: /foreign-stock/*?*tab=corporate-actions Disallow: /foreign-stock/*?*section=events Disallow: /*.csv$ Disallow: /*.csv? Disallow: /*.xlsx$ Disallow: /*.xlsx? # 2026-11-08: manager-overlay and section variants of stock pages. Every # manager/fund page links its holdings as /stocks/?manager= and # /foreign-stock/?manager= (the overlay draws THAT manager's # position). The canonical already drops the overlay, so Google indexed none # of them - Search Console listed 14,707 "Alternate page with proper # canonical tag", each a multi-second render that crowds out real pages. # Visitors keep the links; only crawling stops. The bare stock pages are in # the sitemap. ?tab= on /foreign-stock is NOT blocked: it is that page's # path-tab equivalent (/stocks//news) and carries its own canonical. Disallow: /stocks/*manager= Disallow: /foreign-stock/*manager= Disallow: /foreign-stock/*section= # Filing viewers are evidence tools, not standalone search landing pages. # Avoid crawling every label/page variant linked from research pages. Disallow: /filings/*/viewer Disallow: /filings/*/document # 2026-05-29 task #147 — honeypot trap. Hidden in the page layout for # bot detection. Listed here so well-behaved bots skip it; anything that # DOES hit /scraper-trap is, by definition, automation that ignored # robots.txt and gets banned for 24h. Disallow: /scraper-trap Sitemap: https://alpha-file.com/sitemap.xml