Lesson 1 of 9 · 22m
How Crawlers Actually See Your Site
Discovery, crawl permission, status codes, and why robots.txt is a crawling control rather than an indexing control.
The first SEO incident I ever debugged was not a ranking problem. It was a Next.js app returning 200 OK for every URL, including deleted products and /wp-login.php scans. Google crawled tens of thousands of nonsense pages, index bloat exploded, and the pages we cared about were discovered late because the crawler was busy wandering through garbage. Technical SEO starts there: a crawler is a constrained machine making fetch decisions, not a human with infinite patience.
Crawling is discovery plus permission
A URL is usually discovered through links, XML sitemaps, redirects, or URLs Google already knows. Discovery is not a promise to crawl. Before fetching, the crawler checks robots.txt for permission and then schedules the fetch based on host load, crawl priority, and how useful that host has historically been.
# robots.txt
User-agent: *
Disallow: /search
Disallow: /cart
Disallow: /internal/
Allow: /internal/public-status.json
Sitemap: https://sudosecurity.org/sitemap.xmlUser-agent: * applies to crawlers without a more specific group. The most specific path match wins, which is why the longer Allow line can reopen one path inside a disallowed directory. Test the file exactly as deployed; a newline, encoding problem, or bad redirect on robots.txt can change behavior sitewide.
robots.txt controls crawling, not indexing
This is the mental model people get wrong. If a URL is blocked in robots.txt, Google usually cannot fetch it and therefore cannot see a noindex tag on the page. The URL can still appear in search as a bare link when other pages link to it. If your goal is "do not index this," the page must be crawlable and return a visible noindex directive.
<meta name="robots" content="noindex,follow">Use robots blocking for endless calendars, cart actions, internal search result permutations, and other infinite crawl spaces. Use noindex for thin pages that users may need but search engines should not list. Do not apply both to the same URL and expect the noindex to be seen.
Status codes are indexing instructions
curl -I https://sudosecurity.org/learnThe response line matters more than the visual design:
200means indexable candidate.301or308means the authority should move to the target.302or307means temporary; the source often keeps its signals.404means gone unless it comes back.410means deliberately removed and tends to drop faster.5xxmeans server trouble; persistent errors reduce crawl trust.
Soft 404s are the trap: a page that says "not found" while returning 200. Search engines eventually classify it as a soft 404, but meanwhile you waste crawl and pollute analytics. Return the correct status even when the UI is friendly.
Field notes
robots.txtis forums. It is not access control and it advertises the private paths you were trying to hide.- Google mostly ignores crawl-delay directives; manage load with real rate limiting and server capacity.
- URL casing, trailing slashes, and query parameters create distinct crawlable URLs unless you canonicalize or redirect them.
- If an accidental
Disallow: /ships, remove it quickly, then request recrawling of key URLs; the longer it lives, the longer recovery takes.
Was this lesson helpful?