noindex keeps a page out of search results but leaves the page online. On the afternoon of 2 November, a nine-locale thermostat site had 45 pages linking to one draft manual, anchor text ending in "(draft)". The page had a reason to exist. Every link to it had to go.

What noindex actually covers
It does one job: tell search engines not to put this URL in the index. The page still returns 200, still opens in a browser, still works when linked, and still lets a crawler read the full text.
A page that is genuinely not public has to meet four conditions at once:
- the page carries noindex, in the meta tag or the response header
- it is absent from the sitemap
- no other page on the site links to it
- internal files in the same directory are not publicly reachable
Most teams handle the first two. The last two fail silently, and the page looks fine.
Where 45 links came from
One block in the template, "related resources", rendered on product pages and FAQ pages. Nine locales, five pages per locale, 45 links from a single build.
| Location | Locales | Pages per locale | Links |
|---|---|---|---|
| Bottom of FAQ page | 9 | 1 | 9 |
| "Before you specify" on product pages | 9 | 4 | 36 |
| Total | 9 | 5 | 45 |
The anchor text read Knob instructions (draft). That word in brackets was meant as a note to a colleague. It also told every visitor the page was unfinished.
It went unnoticed because everything worked locally. The links are relative, so they resolve in Arabic and Japanese too, and the layout holds. SEO tools report "this page is not indexed". They do not report "45 pages link to it".
Internal files sat in the same directory
The release directory holds more than HTML. The publisher also writes four files that the Worker reads.
| File | Contents | What exposure means |
|---|---|---|
_noindex.json |
paths of every draft and noindex page | a list of everything unfinished |
_redirects.json |
the full redirect map | old URLs mapped to the new structure |
_current.json |
the live release directory name | release IDs can be enumerated |
.build-manifest.json |
a hash per file | which files changed, and when |
The Worker used to fetch objects by request path with no filter, so a public GET to /_noindex.json was served like any other file. The direct consequence: nobody had to guess the draft URL. The list contained it.
Three layers of closure
Content first. One commit touched 45 files, removing 49 lines and adding 9. On the FAQ page, two links became one. The page stayed, all nine locales kept it, and it still returns noindex.
The HTTP layer came next. The Worker reads _noindex.json and adds X-Robots-Tag: noindex to any matching path. The meta tag lives in the HTML, the header lives in the response, and a crawler sees the header first.
The edge layer blocks internal files with three rules. Any path segment starting with a dot is blocked, with /.well-known/ allowed. Any path starting with /_ is blocked. Any segment matching an internal filename is blocked. A path that fails URL decoding returns 404. So does a path containing a backslash. Bad encoding gets no guesswork.
Deleting the page was the wrong move. The customer is still reviewing that manual, and the link has to work when it is sent to them. A deleted page turns their bookmark into a 404, and restoring it means another release.
robots.txt is a note, not a lock
It is a request. Crawlers may ignore it and people never read it. Listing internal paths in robots.txt is a sheet of paper on the door that says please stay out.
The Worker reads those files through a storage binding, not through a public path. Blocking public requests leaves redirects working, 301s included.
A test holds the line
The guard test runs against build output, not source files. Nine locale copies of the draft page must exist, and each must carry the meta robots noindex tag. Outside those nine pages, any HTML file with an href to /resources/knob-instructions/, or anchor text ending in (draft)</a>, turns the test red.
A second suite starts a local Worker and checks three things. Internal files must return 404. The draft page must carry x-robots-tag. Redirects must still return 301.
One test replaces clicking through 153 pages before every release.
Five checks before you publish
- grep the build output for the draft path and look for remaining
hrefmatches curl -Ithe draft page and look forx-robots-tag- request
/_noindex.json,/_redirects.json,/_current.jsonand expect 404 on all three - open the sitemap and search for the draft slug
- paste the draft URL into a search box and see whether it is already indexed
The five take about ten minutes. Rerun them after a template change, a new locale, or a new page type.
What each site size needs
| Site | Minimum |
|---|---|
| A dozen pages, one person | remove internal links, exclude from sitemap, keep internal files out of the public directory |
| Multi-locale, dozens of pages | generate the noindex list at build time, add the response header |
| Has an edge layer | return 404 for internal files at the edge, hold it with a test |
The first two rows work without an edge layer. One Nginx rule, location ~ /_ { return 404; }, plus a rule for dotfiles, gets most of the way there.
Who it fits / Limits
This fits multi-locale sites that generate pages and helper files into one release directory, and where a draft link still has to work for a customer who is reviewing it. It also covers a single small site, but the fix shrinks to three moves: remove the internal links, exclude the draft from the sitemap, keep helper files out of the public directory.
It does not fit drafts that can simply be deleted — abandoned content with no reviewer waiting. It also assumes you can change the build output or the server rules. If you control neither, you can only grep the output and check the public URL by hand.
FAQ
Can a noindex page still be found?
Yes, if someone has the link. noindex assumes a crawler fetched the page and respects the tag. Reposts, cached snapshots in search results, and a link someone pastes into a chat all sit outside that assumption. If the page opens, someone can read it.
Should I delete the draft page instead?
Keep it if someone still needs it, delete it if the work is abandoned. If a customer needs to review it, or the team needs a reference, keep it and narrow the entrance to a single temporary link. If it is abandoned content, delete it. A kept page still occupies an address anyone can reach.
How do internal files end up public
The generator writes pages and helper files into one release directory, and the publisher uploads the directory as a whole. The web layer does not distinguish HTML from JSON, so both go out. The more automated the pipeline, the easier this is to miss.
How often should this be checked
After a site structure change, a template change, or a new locale. Each of those generates links in bulk, so one mistake repeats across the site. A quarterly sweep is enough in between.
What if there is no Worker
Keep internal files out of the public directory at build time, or block /_ and dotfiles with Nginx or object storage rules. Put draft pages in a separate directory behind a password or a signed temporary URL.
Last updated: 2026-11-03