Skip to content

Exclude path from search indexes #593

Todo

Description

@rudimatz

Also https://www.rfc-editor.org/authors/ routes are being indexed and shouldn't be

Originally posted by @ajeanmahoney in #107

Activity

  1. holloway commented on Nov 25, 2026

    @holloway
    Contributor

    Under /authors/ we have:

    1. a mix of legit content that should be indexed (the markdown content pages) like https://www.rfc-editor.org/authors/rfc-how-to/ ;
    2. a blanket redirect for other paths to https://auth48-transition.rfc-editor.org/* which shouldn't be indexed.

    I think the appropriate thing to do is to make auth48-transition.rfc-editor.org exclude content from search engines, and their robots.txt already does some of this, but specific pages like https://auth48-transition.rfc-editor.org/authors/rfc10090.pdf lack the HTTP headers to discourage indexing. I think that's the only task and it's outside of Red.

    Is that correct @ajeanmahoney @rudimatz ?

  2. rudimatz commented on Nov 25, 2026

    @rudimatz
    ContributorAuthor

    I agree that https://www.rfc-editor.org/authors/rfc-how-to/ looks like something that SHOULD be indexed.
    @ajeanmahoney can you give more concrete examples of URLs under /authors/ that you want to be excluded from search indexes?

  3. ajeanmahoney commented on Nov 25, 2026

    @ajeanmahoney
    Contributor
  4. holloway commented on Nov 25, 2026

    @holloway
    Contributor

    Then the blocking of search needs to happen on the https://auth48-transition.rfc-editor.org/ site.

  5. rudimatz commented on Nov 25, 2026

    @rudimatz
    ContributorAuthor

    what claude thinks:

      What to do
    
      1. Send noindex on the files. On auth48-transition.rfc-editor.org, send X-Robots-Tag: noindex, nofollow on every response. Use either:
         - a Cloudflare Transform Rule (Rules → Transform Rules → Modify Response Header, hostname auth48-transition.rfc-editor.org), or
         - the nginx config behind the do-rfcpa tunnel.
      2. Remove Disallow: / from that host's robots.txt (leave it empty), so crawlers can fetch the files and see the header. Without this step, step 1
         has no effect.
      3. Also send noindex on the redirect (red). In red/worker/src/index.ts:151, add X-Robots-Tag: noindex to the /authors/:extra+ 302 response. It's
         a small change, but I haven't confirmed that search engines honour the header on a redirect, so treat it as a backup to steps 1–2.
      4. Speed up removal. Engines drop the addresses only when they crawl them again. To remove them sooner:
         - Google Search Console → Removals, prefix https://www.rfc-editor.org/authors/rfc1 (temporary, while noindex takes over).
         - Bing Webmaster Tools → Block URLs, which may also matter for DuckDuckGo. I haven't checked how DuckDuckGo sources its results.
    
  6. rudimatz commented on Nov 26, 2026

    @rudimatz
    ContributorAuthor

    @NGPixel can you have a look at this (setting the X-Robots-Tag on auth48-transition.rfc-editor.org)

  7. NGPixel commented on Nov 26, 2026

    @NGPixel
    Member

    Done

  8. rudimatz commented on Nov 27, 2026

    @rudimatz
    ContributorAuthor

    @NGPixel can you check again.. I don't see the header

    ruedi@rudi-ryzen:/mnt/c/Users/ruedi$ curl -sI https://auth48-transition.rfc-editor.org/authors/rfc10090.pdf
    HTTP/2 200
    date: Fri, 27 Nov 2026 14:23:25 GMT
    content-type: application/pdf
    content-length: 128919
    accept-ranges: bytes
    cache-control: public, max-age=14400
    etag: "6b00c785-1f797"
    last-modified: Fri, 20 Nov 2026 22:19:49 GMT
    server: cloudflare
    age: 21
    expires: Fri, 27 Nov 2026 18:23:25 GMT
    cf-cache-status: HIT
    set-cookie: __cf_bm=eLV.7sBf7TK0D.ZNNzv_TZxb6V9yCWrDd9OpXs2MKNU-1795789405.0160513-1.0.1.1-zSNN5FVfLAPOkvHcc6eFXJhIaEorS88uFPFfikDMeSUbiKRH.VuDW8o9qrTKcmjY6G1nc72ogMtx0W57aiq1U6nC.XTIewTXrG4ZZGXxvF9cuJrRVqmvXC1DmDY8xYcK; HttpOnly; SameSite=None; Partitioned; Secure; Path=/; Domain=rfc-editor.org; Expires=Fri, 27 Nov 2026 14:53:25 GMT
    cf-ray: a611ca655ea332b1-EWR
    alt-svc: h3=":443"; ma=86400
    
  9. rudimatz commented on Nov 27, 2026

    @rudimatz
    ContributorAuthor

    @NGPixel and can you also check for 2) {robots.txt for https://auth48-transition.rfc-editor.org/}. I think its handled by CF

  10. NGPixel commented on Nov 27, 2026

    @NGPixel
    Member

    Header fixed, it was set to Request instead of Response...

    For the robots.txt file, it can only be set globally, not per subdomain.

  11. rudimatz commented on Nov 27, 2026

    @rudimatz
    ContributorAuthor

    @ajeanmahoney I see it's removed from https://duckduckgo.com/?t=ffab&q=rfc+10090&atb=v222-1&ia=web now.
    Can you do some tests if it looks good now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions