Skip to content
+91 89607 57615
Code Craft — web development and digital marketing
Lesson 1340 min

Project: a complete SEO audit

Audit a real website with the course's tool and Search Console, then turn the findings into a prioritised plan.

Taught by Sandesh Sahetiya

The video is part of the full course

In this lesson you will

  • Run a full technical and on-page audit
  • Combine tool results with Search Console data
  • Prioritise fixes by impact and effort
  • Present findings clearly to a site owner

Time to put it all together on a real site: your own, a family member's business, or a client's with their permission. You'll use the audit tool for on-page and technical checks, Search Console for Google's view, and your own judgement for content and local SEO.

1. Run the audit tool

Crawls up to 500 pages; --json saves the results for a spreadsheet
node seo-audit.mjs https://www.your-site.com/ --max=500
node seo-audit.mjs https://www.your-site.com/ --json > audit.json

The tool only reads public pages and is polite (one request at a time), but only audit sites you own or have permission to test. Here's how it checks robots.txt, so you know what its warnings mean:

tools/seo-audit.mjs · lines 38–67Download
// ── robots.txt: the group for "*", longest matching rule wins, allow wins ties ──
async function readRobots() {
  const res = await fetch(`${origin}/robots.txt`, { redirect: "follow" }).catch(() => null);
  if (!res || res.status !== 200) {
    add("note", "No robots.txt", `${origin}/robots.txt`, `status ${res ? res.status : "unreachable"}: crawlers may crawl everything`);
    return { rules: [], sitemaps: [] };
  }
  const rules = [], sitemaps = [];
  let inStar = false, lastWasAgent = false;
  for (const raw of (await res.text()).split(/\r?\n/)) {
    const line = raw.replace(/#.*/, "").trim();
    const m = /^([a-z-]+)\s*:\s*(.*)$/i.exec(line);
    if (!m) continue;
    const [key, value] = [m[1].toLowerCase(), m[2].trim()];
    if (key === "sitemap") { sitemaps.push(value); continue; }
    if (key === "user-agent") { inStar = (lastWasAgent && inStar) || value === "*"; lastWasAgent = true; continue; }
    lastWasAgent = false;
    if (inStar && (key === "allow" || key === "disallow") && value) rules.push({ allow: key === "allow", path: value });
  }
  return { rules, sitemaps };
}
function blockedBy(rules, url) {
  const p = new URL(url).pathname + new URL(url).search;
  let best = null;
  for (const r of rules) {
    const re = new RegExp("^" + r.path.replace(/[.+?^{}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\\\$$/, "$"));
    if (re.test(p) && (!best || r.path.length > best.path.length || (r.path.length === best.path.length && r.allow))) best = r;
  }
  return best && !best.allow ? best.path : null;
}

Continue with the full course

The rest of this lesson, the narrated video, the PDF and the exercise are part of SEO Fundamentals: On-page, Technical and Local. One payment, lifetime access.

Already bought it? Sign in with the email you paid with.