EthicsComputerCourses
Join training +91 90532 10052

Advanced Technical SEO

HTML · Lesson 178 of 234 Advanced 11 min read Updated

By the end of this lesson you will be able to read server logs for crawler activity, flatten redirect chains and handle tricky canonical and JavaScript cases on large sites. You will also know what Google says about Core Web Vitals, IndexNow and AI crawlers.

What you should know first: SEO Technical Architecture for crawl, render, index, robots rules, sitemaps and status codes, Crawlable Links, Breadcrumbs & Pagination, Core Web Vitals Fundamentals and Multilingual HTML Architecture. Facts were checked against Google Search Central and indexnow.org in November 2026. Nothing here guarantees rankings; it removes technical problems that stop good pages being found.

When crawl budget really matters

A Mumbai dabbawala team can carry only so many tiffins in one trip. Google's crawler works the same way for each hostname. Google's guide splits crawl budget into two parts:

  • Crawl capacity limit: how hard Google can crawl without hurting your server. It rises when your server answers fast and falls when it slows down or returns 5xx or 429 errors.
  • Crawl demand: how much Google wants to crawl, based on how many URLs it thinks you have, how popular they are and how stale its copies are.

Google says the guide is for very large or fast-changing sites: roughly a million or more pages changing about weekly, ten thousand or more changing daily, or sites where many URLs show as "Discovered - currently not indexed" in Search Console. A 300-page shop in Jaipur does not need it.

For large sites, the advice is about cutting waste:

  • Consolidate duplicates and block URLs that should never be crawled, such as sort orders, in robots.txt.
  • Return 404 or 410 for removed pages, fix soft 404s and avoid long redirect chains.
  • Keep sitemaps current with honest <lastmod> dates, and support 304 Not Modified responses.
  • Do not use noindex to save budget: Google still fetches the page before it sees the tag.
  • Do not block pages in robots.txt for a while to push Google towards others; budget does not move that way.

Search Console's Crawl stats report (under Settings) shows requests per day, response codes, file types, average response time and host problems.

Log-file analysis basics

Your server's access log records every request. A typical line in the "combined" log format:

Text
203.0.113.7 - - [14/Nov/2026:10:02:11 +0530] "GET /sarees/?sort=price HTTP/1.1" 200 18342 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Reading left to right: client IP, time, method and path, status code, bytes, referrer and user agent. Logs show which sections Googlebot visits, how much crawling goes to parameter URLs and which URLs return errors.

Anyone can fake the "Googlebot" user agent, so verify. Google's method: run a reverse DNS lookup on the IP, check that the host name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup on that name and confirm it returns the same IP. Google also publishes its crawler IP ranges as JSON files, such as common-crawlers.json.

Live coding: a small log analyser

Step 1: paste log lines into a textarea. Step 2: parse each line with one regular expression. Step 3: keep Googlebot lines and count statuses, parameter URLs and errors.

HTMLOpen in editor
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Crawler log analyser</title>
  <style>
    body { font-family: system-ui, sans-serif; margin: 16px; }
    textarea { inline-size: 100%; block-size: 9rem; font: 12px monospace; }
    pre { background: #f4f4f4; padding: 10px; white-space: pre-wrap; }
  </style>
</head>
<body>
  <h1>Isha Textiles: who crawled what?</h1>
  <label for="log">Access log lines (IPs are documentation examples)</label>
  <textarea id="log">203.0.113.7 - - [14/Nov/2026:10:02:11 +0530] "GET /sarees/ HTTP/1.1" 200 18342 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.7 - - [14/Nov/2026:10:02:15 +0530] "GET /sarees/?sort=price HTTP/1.1" 200 18110 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.8 - - [14/Nov/2026:10:03:02 +0530] "GET /sarees/?sort=new&colour=red HTTP/1.1" 200 17990 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
198.51.100.20 - - [14/Nov/2026:10:04:40 +0530] "GET /sarees/ HTTP/1.1" 200 18342 "-" "Mozilla/5.0 (Linux; Android 14) Chrome/131.0 Mobile"
203.0.113.7 - - [14/Nov/2026:10:05:09 +0530] "GET /old-collection/ HTTP/1.1" 301 0 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.7 - - [14/Nov/2026:10:05:10 +0530] "GET /kurtas/silk-blue HTTP/1.1" 404 512 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.9 - - [14/Nov/2026:10:06:31 +0530] "GET /search?q=saree HTTP/1.1" 503 0 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.7 - - [14/Nov/2026:10:07:02 +0530] "GET /sarees/banarasi-maroon HTTP/1.1" 304 0 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"</textarea>
  <button type="button" id="run">Analyse</button>
  <pre id="report"></pre>

  <script>
    // ip - - [time] "METHOD path PROTOCOL" status bytes "referrer" "user agent"
    const LINE = /^(\S+) \S+ \S+ \[([^\]]+)\] "(\S+) (\S+) [^"]*" (\d{3}) (\d+|-) "[^"]*" "([^"]*)"$/;

    function analyse(text) {
      const hits = [];
      for (const raw of text.split("\n")) {
        const m = LINE.exec(raw.trim());
        if (!m) continue;
        const [, ip, , , path, status, , agent] = m;
        if (/Googlebot/i.test(agent)) hits.push({ ip, path, status: Number(status) });
      }
      const byStatus = Object.groupBy(hits, (h) => h.status);
      const withParams = hits.filter((h) => h.path.includes("?"));
      const errors = hits.filter((h) => h.status >= 400);
      const lines = [
        `Requests claiming to be Googlebot: ${hits.length}`,
        "By status: " + Object.keys(byStatus).map((s) => `${s} x${byStatus[s].length}`).join(", "),
        `Parameter URLs: ${withParams.length} of ${hits.length} (${Math.round(withParams.length / hits.length * 100)}%)`,
        "Errors to fix:",
        ...errors.map((h) => `  ${h.status} ${h.path}`),
        "Next step: verify these IPs with reverse and forward DNS."
      ];
      return lines.join("\n");
    }

    const run = () => { document.querySelector("#report").textContent = analyse(document.querySelector("#log").value); };
    document.querySelector("#run").addEventListener("click", run);
    run();
  </script>
</body>
</html>

The report reads:

Output
Requests claiming to be Googlebot: 7
By status: 200 x3, 301 x1, 304 x1, 404 x1, 503 x1
Parameter URLs: 3 of 7 (43%)
Errors to fix:
  404 /kurtas/silk-blue
  503 /search?q=saree
Next step: verify these IPs with reverse and forward DNS.

The phone visit was dropped because it is a normal browser. Three of seven crawler requests going to sort, filter and search URLs is a sign to add robots.txt rules. Edit the lines and press Analyse to try your own.

JavaScript SEO beyond the basics

You know the core rules: noindex and canonicals in the original HTML, <a href> links. Three more matter on real sites:

  • Google does not scroll or click. Google's lazy-loading guide says Search does not interact with your page. Load content when it enters the viewport (loading="lazy" or IntersectionObserver), never only after a click or a scroll event.
  • Infinite scroll needs real URLs. Give each chunk a stable URL with an absolute page number, such as ?page=12, link the chunks in order and update the address bar with the History API as the user scrolls.
  • Googlebot caches files hard. Its renderer may ignore your cache headers and use an old script. Put a content hash in file names, such as app.3f9a1c.js, so a new version is a new URL.

Check what Google rendered with the URL Inspection tool in Search Console: look at the rendered HTML, not your browser's view.

Canonical edge cases

  • Pagination. Each page canonicals to itself, as in Crawlable Links, Breadcrumbs & Pagination.
  • Tracking parameters. ?utm_source=whatsapp or ?gclid=... pages canonical to the clean URL. Do not also block them in robots.txt: a blocked page's canonical tag is never read.
  • Cross-domain. A canonical may point to another domain, for example when the same article appears on two sites you own. For articles syndicated to partner sites, Google says canonical is not the recommended tool; the partners should block indexing of their copy.
  • Conflicting signals. A canonical pointing at a redirected URL, at a noindex page, or two different canonical tags on one page all send mixed messages. Pick one URL and make every signal agree.

hreflang and canonical together

Each language version canonicals to itself; Google advises a canonical in the same language. The URLs in your hreflang set must be those canonical URLs, never redirected or parameter versions. International SEO & Hreflang goes deeper.

Soft 404s and redirect chains

A soft 404 is a page that returns 200 but looks like an error or an empty page. Common causes: internal search pages with "0 results", product pages that say "no longer available", and redirecting every deleted page to the home page. Search Console's Page indexing report lists them. Fix each one by intent:

  • Gone for good with no replacement: 404 or 410.
  • Replaced by a close equivalent: a 301 to that page.
  • Temporarily out of stock: keep 200 with the product details and clear availability.

A redirect chain is A to B to C. Google's crawlers follow up to 10 hops, but each hop costs a request and slows users on mobile networks. Flatten them: every old URL should point straight at the final one, and internal links should use the final URL directly.

HTMLOpen in editor
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Redirect chain checker</title>
  <style>
    body { font-family: system-ui, sans-serif; margin: 16px; }
    textarea { inline-size: 100%; block-size: 7rem; font: 13px monospace; }
    pre { background: #f4f4f4; padding: 10px; }
  </style>
</head>
<body>
  <h1>Redirect rules: from, then to</h1>
  <textarea id="rules">/shop/sarees /collections/sarees
/collections/sarees /sarees/
/old-offers /diwali-sale
/diwali-sale /offers/
/offers/ /old-offers
/about-us /about/</textarea>
  <button type="button" id="check">Check chains</button>
  <pre id="out"></pre>

  <script>
    function check(text) {
      const map = new Map();
      for (const line of text.split("\n")) {
        const [from, to] = line.trim().split(/\s+/);
        if (from && to) map.set(from, to);
      }
      const report = [];
      for (const start of map.keys()) {
        const path = [start];
        let url = start;
        while (map.has(url) && path.length <= 10) {
          url = map.get(url);
          if (path.includes(url)) { path.push(url); break; }
          path.push(url);
        }
        const hops = path.length - 1;
        if (path.indexOf(url) !== path.length - 1) {
          report.push(`LOOP  ${path.join(" -> ")}`);
        } else if (hops > 1) {
          report.push(`CHAIN ${hops} hops: ${path.join(" -> ")}\n      fix: ${start} ${url}`);
        }
      }
      return report.length ? report.join("\n") : "No chains or loops.";
    }
    const run = () => { document.querySelector("#out").textContent = check(document.querySelector("#rules").value); };
    document.querySelector("#check").addEventListener("click", run);
    run();
  </script>
</body>
</html>
Output
CHAIN 2 hops: /shop/sarees -> /collections/sarees -> /sarees/
      fix: /shop/sarees /sarees/
LOOP  /old-offers -> /diwali-sale -> /offers/ -> /old-offers
LOOP  /diwali-sale -> /offers/ -> /old-offers -> /diwali-sale
LOOP  /offers/ -> /old-offers -> /diwali-sale -> /offers/

The saree rule gets a one-hop fix. The three offer rules form a loop, which no browser or crawler can finish; delete one of them. /about-us is a single hop, so it is fine.

Core Web Vitals, in Google's words

Google's page experience documentation says Core Web Vitals are used by its ranking systems, that there is no single page experience signal, and that good scores do not guarantee top rankings. It also says Google tries to show the most relevant content even when its page experience is poor. So improve Core Web Vitals for your users: it can help when pages are equally useful, but it never replaces relevant content.

IndexNow: which engines listen

IndexNow is an open protocol for telling search engines that a URL was added, changed or deleted. In November 2026, indexnow.org lists Bing, Yandex, Seznam, Naver and Yep as participating search engines, plus the Internet Archive and Amazonbot. Google is not a participant, so IndexNow does nothing for Google Search; use sitemaps there. Engines that join agree to share submissions, so one request reaches all of them.

You host a key file, for example https://www.example.com/9f2c4b7a1d.txt containing the key, and then send changed URLs:

HTTP
POST /indexnow HTTP/1.1
Host: api.indexnow.org
Content-Type: application/json; charset=utf-8

{
  "host": "www.example.com",
  "key": "9f2c4b7a1d",
  "urlList": ["https://www.example.com/sarees/banarasi-maroon", "https://www.example.com/offers/"]
}

A 200 or 202 means the request was received, not that the page will be indexed. Submit only URLs that really changed, up to 10,000 per request.

AI crawlers: only what the docs say

Many blog posts invent tags such as <meta name="robots" content="noai">. Google's list of supported robots rules has no such value. Google's documentation says:

  • AI Overviews and AI Mode have no special requirements or special structured data. They use pages from the normal Search index, controlled by the usual robots.txt rules for Googlebot.
  • To limit what is shown from a page, use the normal preview controls: nosnippet, data-nosnippet, max-snippet or noindex.
  • Google-Extended is a robots.txt product token, not a meta tag and not a separate crawler. It controls whether content Google crawls may be used to train and ground Gemini models. It does not affect inclusion or ranking in Google Search.
Text
User-agent: Google-Extended
Disallow: /

For other companies' AI crawlers, follow each one's official documentation.

Common mistakes

  • Using noindex to save crawl budget. Google still fetches the page.
  • Blocking parameter URLs that carry a canonical. The canonical is never seen.
  • Trusting the user agent in logs. Verify with reverse and forward DNS.
  • Redirecting all deleted products to the home page. These become soft 404s.

Interview questions

1. Which sites need to worry about crawl budget?

Google's guide targets very large or fast-changing sites, or sites with many "Discovered - currently not indexed" URLs. Small sites should focus on clean links, sitemaps and correct status codes.

2. How do you confirm that a request in your logs really came from Googlebot?

Do a reverse DNS lookup on the IP and check that the host ends in googlebot.com, google.com or googleusercontent.com. Then do a forward lookup on that host and confirm it returns the same IP. You can also match the IP against Google's published crawler IP ranges.

3. What is a soft 404 and how do you fix one?

A URL that returns 200 while showing an error or empty page. Return a real 404 or 410 if the content is gone, 301 to a true replacement if one exists, or make the page genuinely useful if it should stay.

4. What is Google-Extended?

A robots.txt product token that lets a site opt out of its content being used to train and ground Gemini models. It has no separate user agent, and Google says it does not affect a site's inclusion or ranking in Search.

Key points

  • Crawl budget matters for very large or fast-changing sites; cut duplicate URLs, errors and chains rather than using noindex.
  • Server logs show real crawler behaviour; verify Googlebot with reverse and forward DNS.
  • Google does not click or scroll: load content in the viewport and give infinite scroll real URLs.
  • Make canonicals, redirects, hreflang and internal links agree; never block a URL whose canonical you need read.
  • Fix soft 404s by intent and flatten redirect chains to one hop.
  • Core Web Vitals are one of many signals; IndexNow does not cover Google; follow only documented AI crawler controls.

Exercise

You run "Kochi Spice Mart" with 40,000 product URLs. Your log sample shows Googlebot spending most requests on ?sort= and ?sessionid= URLs, a chain /spices/pepper to /products/pepper to /products/black-pepper, and out-of-season products redirected to the home page. Write: the robots.txt lines, the flattened redirect rule, what each out-of-season product should return, and one sentence on whether to add IndexNow and what it will not do.

Show solution
Text
User-agent: *
Disallow: /*?sort=
Disallow: /*?sessionid=
Disallow: /*&sort=
Disallow: /*&sessionid=
Sitemap: https://www.example.com/sitemap.xml

Redirect rule (one hop):
/spices/pepper -> /products/black-pepper   (301)
/products/pepper -> /products/black-pepper (301, kept for old links)

Seasonal products keep status 200 with a clear "back in season in March" message; products dropped for good return 404 or 410. Redirecting them home creates soft 404s. IndexNow helps Bing and the other participants, but does nothing for Google, which relies on crawling and the sitemap.

Quick Quiz

1. Why does noindex not save crawl budget?

2. How many redirect hops do Google's crawlers follow by default?

3. Which of these takes part in IndexNow according to indexnow.org?

4. What does Google-Extended control?

Learn HTML with a mentor

Free lessons get you started. Our Full Stack Web Development training adds real projects and code reviews from working developers.

  • Project-based learning
  • Mentor code reviews
  • Free counselling call