Search indexing
A deploy that tells search engines to go away. A staging robots.txt, a noindex tag from a preview build or a sitemap that stopped building all ship quietly, and the first sign is traffic that thins out a week later.
What it is
Three things decide what search engines read on your site. robots.txt says which paths their crawlers may open. A robots meta tag or an X-Robots-Tag header on a page says whether that page may appear in results. The sitemap lists the pages you want them to find.
Why it matters
Search engines follow these rules at their next visit. A robots.txt with Disallow: / for every agent, or a noindex on the home page, and the site drops out of results over the next days. Getting back in takes longer than falling out.
How Tenty checks it
The check runs on every scan, after a deploy too, and reads what the scan already fetched.
- robots.txt: Tenty reads the groups for every agent, Googlebot, Bingbot, DuckDuckBot, YandexBot and Applebot, and notes which of them may open
/. - Pages: Tenty reads the robots meta tag and the X-Robots-Tag header of the home page, and of each key page the browser opens.
- Sitemap: Tenty reads the sitemap that robots.txt names on your own host, or
/sitemap.xml, and counts the pages it lists.
Tenty alerts on a change. The first scan records each part, and a finding opens when a part that was open in an earlier scan is closed now. A site that stays out of search on purpose, a staging app for example, stays quiet. The finding stays open while the part stays closed, and closes on the scan that reads it open again.
When robots.txt closes the whole site to every agent, Tenty is closed out too, since it follows robots.txt. That scan reads robots.txt, reports search indexing and holds the other checks until robots.txt lets Tenty in.
robots.txt closing the whole site and noindex on the home page are high. Noindex on a key page is medium. A broken sitemap is low.
The app overview shows the state of each part from the last scan.
How to fix it
Take Disallow: / out of the live robots.txt, or narrow it to the paths that stay out of search. Remove the noindex meta tag or X-Robots-Tag header from pages that belong in results. Both usually come from a staging or preview setting, so check the environment variable or build flag that switches them on. For the sitemap, open its address and check it answers with XML that lists your pages, then fix the build step or route that makes it.
How to reproduce
curl -sS 'https://YOUR-APP/robots.txt'
curl -sS -D - -o /dev/null 'https://YOUR-APP/' | grep -i x-robots-tag
curl -sS 'https://YOUR-APP/' | grep -io '<meta[^>]*robots[^>]*>'
curl -sS -o /dev/null -w '%{http_code}\n' 'https://YOUR-APP/sitemap.xml'