Help & Reference

Web fetching

Mirepoix fetches web pages under two names: Mirepoix-Import, when a person asks it to import a recipe from a link, and Mirepoix-Crawl, a slow crawler the operator runs over a short list of recipe sites. This page is for a cook whose link was declined and for a site operator who found either name in a server log.

Mirepoix reads a site’s robots.txt before opening a page. When a rule there covers your page, Mirepoix doesn’t open it, and Add Recipe says the site’s robots.txt asks automated readers not to open that page. That’s the site’s choice, so retrying won’t help. Instead:

The same two fixes work for a site that turns automated readers away outright. See When a page won’t open.

For site operators

An import sends:

Mirepoix-Import/1.0 (+https://help.mirepoix.recipes/web-fetching/)

The crawler sends:

Mirepoix-Crawl/1.0 (+https://help.mirepoix.recipes/web-fetching/#mirepoix-crawl)

with a From: crawler-feedback@mirepoix.recipes header. An import sends no From header.

The product tokens are Mirepoix-Import and Mirepoix-Crawl. They’re separate so you can turn the crawler away and still let your readers import your recipes.

Import traffic is user-initiated

Mirepoix-Import is not a crawler. Each request comes from a signed-in person who pasted or shared that link, opened that page from a web search in Mirepoix and then asked to import it, or sent the page from their browser. It doesn’t follow links, queue later visits, or open any address the person didn’t send.

A page sent from a browser arrives already loaded, so Mirepoix doesn’t fetch it again. One that Mirepoix’s operator sends to test imports is fetched once more, under the same name and rules.

The only other fetch is the recipe’s own photo, named in the page’s recipe data, under the same name and rules: once for the draft, and again if the person saves the recipe.

Each fetch is a GET over HTTP or HTTPS on the standard ports. It follows a handful of redirects at most, stops reading past 2 MB for a page or 5 MB for a photo, and gives up on a slow page.

What imports honor in robots.txt

Mirepoix asks for /robots.txt on the page’s origin, with the same User-Agent, and declines any path a matching rule disallows. A redirect target is checked the same way before it’s opened. It reads:

It ignores Crawl-delay and Sitemap, and reads the first 500 KB of a long file.

A robots.txt it could read is cached for an hour per origin, and so is a 4xx answer, read as allowing everything. One that errored or didn’t answer isn’t cached, so the next import asks again.

An import fails open: if /robots.txt is missing, errors, or doesn’t answer, Mirepoix opens the page.

Turn imports away

User-agent: Mirepoix-Import
Disallow: /

Within an hour, Mirepoix declines every page on the origin and tells the person to bring the recipe another way. Disallow a path instead of / to cover one section.

A User-agent: * rule that covers the path turns Mirepoix away too. Use a Mirepoix-Import group when you want Mirepoix treated differently from other automated readers. Shutting Mirepoix-Import out of the whole site with Disallow: / also turns the crawler away.

Mirepoix-Crawl

Mirepoix-Crawl reads a small sample of recipe pages on a short list of sites, each reviewed for its robots.txt and terms before it’s added. It keeps each recipe’s name and ingredient list, so the operator can test how Mirepoix reads ingredient lines. What it keeps stays on the operator’s own machine, outside the app, and is never published or shown to anyone using Mirepoix.

What it reads

On a site it may crawl, in this order:

  1. Your robots.txt, fresh each run, never cached.
  2. Your terms page, if you had one at review. If it changed or doesn’t load, the crawler stops and takes nothing until your site is reviewed again.
  3. Your sitemaps: the Sitemap: lines in robots.txt, or else /sitemap.xml, or else /sitemap_index.xml. It follows an index one level down and reads at most 10 sitemaps a run. A sitemap may be on any host your robots.txt names, but every page it takes must be on your own site.
  4. A random sample of recipe pages from your sitemap. It skips addresses with a query string, print views, AMP pages, and anything your robots.txt disallows for Mirepoix-Crawl.

It reads each page once, ever: at most 30 pages from your site per run and 60 in its whole life, and never more than a quarter of the pages your sitemap lists. After 60, it sends your site nothing more, not even a robots.txt request.

Every request is a GET over HTTP or HTTPS on the standard ports. It follows a handful of redirects, but never to another host (www. and the bare domain count as one). It stops reading a page past 2 MB, or a sitemap past 50 MB.

What it keeps

A short note on a line, such as “divided”, stays with it. A note over 80 characters becomes [note omitted] when it’s in parentheses, after a comma, or in a WP Recipe Maker note field.

Nothing else is kept: no HTML, steps, story, comments or photos.

Its pace

It waits at least 15 seconds between requests to your site, or longer if your robots.txt asks. It takes the largest Crawl-delay in any group of any of your robots.txt files (HTTP and HTTPS, with and without www., and any sitemap host), from the request after it reads each one. Its first request to your site at any start or restart also waits 15 seconds. The two exceptions: its first robots.txt read waits 15 seconds but not your Crawl-delay, and it follows a redirect from /robots.txt straight away.

It sends one request at a time, takes turns between sites, and retries nothing within a run. It stops on your site when:

The same holds when your robots.txt itself answers 401, 403, 429 or 503.

Turn the crawler away

Any of these stops it:

It checks these rules in every robots.txt it reads for your site, and never sends a request one of them turns away, even partway through a redirect. A change takes effect on its next run.

Have what it took deleted

Email crawler-feedback@mirepoix.recipes and name your site. That address also takes any other question or complaint. The operator marks your site as refused, so from the next run the crawler sends it nothing, then deletes the ingredient lists it kept. The visited page addresses stay in its run records, only so it never comes back.

See also

Last updated November 30, 2026