<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CodedSEO</title>
    <description>The latest articles on DEV Community by CodedSEO (@codedseo_203994cd6fc761a8).</description>
    <link>https://dev.to/codedseo_203994cd6fc761a8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4218023%2F8f17d33a-a46f-4533-bca5-fd6776197199.jpg</url>
      <title>DEV Community: CodedSEO</title>
      <link>https://dev.to/codedseo_203994cd6fc761a8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codedseo_203994cd6fc761a8"/>
    <language>en</language>
    <item>
      <title>A Checklist for Agencies Outsourcing SEO Work (So the Client Site Doesn't Break)</title>
      <dc:creator>CodedSEO</dc:creator>
      <pubDate>Tue, 17 Nov 2026 04:39:11 +0000</pubDate>
      <link>https://dev.to/codedseo_203994cd6fc761a8/a-checklist-for-agencies-outsourcing-seo-work-so-the-client-site-doesnt-break-82j</link>
      <guid>https://dev.to/codedseo_203994cd6fc761a8/a-checklist-for-agencies-outsourcing-seo-work-so-the-client-site-doesnt-break-82j</guid>
      <description>&lt;p&gt;Most agencies that outsource SEO worry about the wrong thing. They ask about price and turnaround. What actually goes wrong is the site: a staging robots.txt pushed to production, a redirect map with gaps, a plugin installed on a Friday that doubles page weight.&lt;/p&gt;

&lt;p&gt;We run an &lt;a href="https://codedseo.com/services/seo-outsourcing-india" rel="noopener noreferrer"&gt;SEO outsourcing team in India&lt;/a&gt; that works inside other agencies' client sites every week. This is the checklist we ask agencies to hold us to. It works just as well if you hire someone else, or a freelancer.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Give access by role, not by password
&lt;/h2&gt;

&lt;p&gt;The fastest way to lose control of a client site is to email an admin login.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Search Console:&lt;/strong&gt; add the outside team as a &lt;em&gt;Restricted&lt;/em&gt; user first. They can read every report. They can't remove URLs or change settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Analytics:&lt;/strong&gt; Viewer role is enough for reporting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CMS:&lt;/strong&gt; a separate account per person, with Editor rights, not Administrator. On WordPress, plugin installs should need an admin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; a fork or a branch, never direct push to &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When the work ends, you remove four named accounts instead of rotating a shared password across the client's whole stack.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. All technical changes go through a pull request
&lt;/h2&gt;

&lt;p&gt;Title tags, schema, redirects, internal links: if it lives in code, it goes through review like any other change.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout -b seo/fix-duplicate-titles
&lt;span class="c"&gt;# make the change&lt;/span&gt;
git commit -m &lt;span class="s2"&gt;"SEO: unique &amp;lt;title&amp;gt; on /services/* (21 pages)"&lt;/span&gt;
git push origin seo/fix-duplicate-titles
&lt;span class="c"&gt;# open a PR, tag the client's developer&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The PR description should say what changed, why, and how to check it. A developer who reads "added FAQ schema to 8 pages, validated in the Rich Results Test, screenshots attached" can approve it in two minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Keep a change log the client's developers can read
&lt;/h2&gt;

&lt;p&gt;Every change, one line each. A shared sheet is fine.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Page&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;th&gt;Reverted?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-03&lt;/td&gt;
&lt;td&gt;/pricing&lt;/td&gt;
&lt;td&gt;Title 72 → 58 chars&lt;/td&gt;
&lt;td&gt;Truncated in search&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-05&lt;/td&gt;
&lt;td&gt;site-wide&lt;/td&gt;
&lt;td&gt;Removed &lt;code&gt;noindex&lt;/code&gt; from /blog/page/*&lt;/td&gt;
&lt;td&gt;Pages dropping out of index&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When rankings move, this is the first place anyone looks. Without it, every drop turns into a guessing game between the agency, the SEO team and the developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Never let staging rules reach production
&lt;/h2&gt;

&lt;p&gt;One of the most common outsourced-SEO mistakes we still see is this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User-agent: *
Disallow: /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's correct on staging and catastrophic on the live site. Two cheap guards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Serve robots.txt from code that checks the environment, not from a static file that gets copied.&lt;/li&gt;
&lt;li&gt;Add a check to CI that fails the build if production's robots.txt contains &lt;code&gt;Disallow: /&lt;/code&gt; on its own line.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://example.com/robots.txt &lt;span class="o"&gt;|&lt;/span&gt; grep -qx &lt;span class="s2"&gt;"Disallow: /"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; \
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Production robots.txt blocks everything"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Migrations need a redirect map before launch day
&lt;/h2&gt;

&lt;p&gt;If a migration is in scope, the outsourced team should hand over a full URL map at least a week before launch, not on the day.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;old_url,new_url,status
/services/seo-audit,/services/seo-audit-services,301
/blog/1,/blog,301
/old-landing-page,,410
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then test it against the live list of URLs that get traffic, which you can export from Search Console's Pages report. Any URL with impressions and no row in the map is a ranking you are about to lose.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Set a performance budget so SEO work doesn't slow the site
&lt;/h2&gt;

&lt;p&gt;Schema scripts, chat widgets, tracking pixels and "SEO plugins" all add weight. Agree a budget up front and let the build enforce it. With Lighthouse CI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"ci"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"assert"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"assertions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"largest-contentful-paint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"maxNumericValue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2500&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"cumulative-layout-shift"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"maxNumericValue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"total-byte-weight"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"warn"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"maxNumericValue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1600000&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If an SEO change breaks the budget, it gets fixed before it ships, not after the Core Web Vitals report turns red a month later.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Validate structured data automatically
&lt;/h2&gt;

&lt;p&gt;Schema is easy to break silently: a CMS update renames a field and every &lt;code&gt;Product&lt;/code&gt; loses its price.&lt;/p&gt;

&lt;p&gt;Run a structured data check on a handful of key templates after each deploy, and keep the validated JSON-LD in the repo so a diff shows exactly what changed. Google's Rich Results Test is fine for spot checks. For anything you rely on, script it.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Agree what "done" means for links and content
&lt;/h2&gt;

&lt;p&gt;This one isn't technical, but it's where most trust breaks down.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Links:&lt;/strong&gt; every link is reported with the page it's on and the page it points to. No private blog networks and no link farms. If a team won't show you the list, assume you won't like it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content:&lt;/strong&gt; written by a person, edited by an SEO lead, with the target keyword and brief in the doc. Not one prompt pasted into a chatbot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reports:&lt;/strong&gt; a sample report &lt;em&gt;before&lt;/em&gt; you sign, so you know what your client will see.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  9. Paperwork that protects the agency
&lt;/h2&gt;

&lt;p&gt;If you resell the work, two documents matter more than the price:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An &lt;strong&gt;NDA&lt;/strong&gt;, because the outside team will see client data.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;non-solicit&lt;/strong&gt;, so they never contact your clients directly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Starting with a single client or a small project, an audit or a content batch, is the cheapest way to find out whether the process above actually happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Role-based access, removed when the work ends&lt;/li&gt;
&lt;li&gt;Every code change through a pull request&lt;/li&gt;
&lt;li&gt;A change log developers can read&lt;/li&gt;
&lt;li&gt;Environment-aware robots.txt, checked in CI&lt;/li&gt;
&lt;li&gt;Redirect map a week before any migration&lt;/li&gt;
&lt;li&gt;A performance budget the build enforces&lt;/li&gt;
&lt;li&gt;Automated structured data checks&lt;/li&gt;
&lt;li&gt;Every link and every brief visible&lt;/li&gt;
&lt;li&gt;NDA and non-solicit before kickoff&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of this is specific to India or to outsourcing. It's how you'd want any team, in-house or outside, to touch a site that pays the bills.&lt;/p&gt;

&lt;p&gt;What would you add? I'm especially curious how other teams handle robots.txt across environments.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>devops</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Is robots.txt enough to let AI crawlers in? (Usually not)</title>
      <dc:creator>CodedSEO</dc:creator>
      <pubDate>Mon, 16 Nov 2026 07:09:32 +0000</pubDate>
      <link>https://dev.to/codedseo_203994cd6fc761a8/is-robotstxt-enough-to-let-ai-crawlers-in-usually-not-3hm1</link>
      <guid>https://dev.to/codedseo_203994cd6fc761a8/is-robotstxt-enough-to-let-ai-crawlers-in-usually-not-3hm1</guid>
      <description>&lt;p&gt;More sites now ask a simple question: can ChatGPT, Claude and Perplexity actually read my pages? Most people open &lt;code&gt;robots.txt&lt;/code&gt;, see nothing scary, and stop there. That check is not enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two layers can block an AI crawler
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;robots.txt.&lt;/strong&gt; A &lt;code&gt;Disallow&lt;/code&gt; rule for a user agent like &lt;code&gt;GPTBot&lt;/code&gt; or &lt;code&gt;PerplexityBot&lt;/code&gt;. Polite crawlers respect it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The firewall or CDN.&lt;/strong&gt; Cloudflare's "Block AI bots" toggle, a host's bot protection, or a WordPress security plugin. These return a 403 to the crawler no matter what robots.txt says.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The second layer is invisible if you only read robots.txt. Your file says "allowed", the bot gets blocked anyway, and you never find out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Training bots vs search bots
&lt;/h2&gt;

&lt;p&gt;Blocking every AI crawler is rarely what people actually want. The user agents fall into three groups:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;th&gt;Block it and...&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Training&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GPTBot&lt;/code&gt;, &lt;code&gt;ClaudeBot&lt;/code&gt;, &lt;code&gt;Google-Extended&lt;/code&gt;, &lt;code&gt;CCBot&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;your pages aren't used to train models. You can still appear in AI answers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI search&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;OAI-SearchBot&lt;/code&gt;, &lt;code&gt;Claude-SearchBot&lt;/code&gt;, &lt;code&gt;PerplexityBot&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;you usually disappear from that tool's answers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User request&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ChatGPT-User&lt;/code&gt;, &lt;code&gt;Claude-User&lt;/code&gt;, &lt;code&gt;Perplexity-User&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;the AI can't open your page when a user asks it to.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So a common setup is "search yes, training no": allow the search and user-request bots, disallow the training bots.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: CCBot
Disallow: /

User-agent: *
Allow: /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I keep the full list of 20 user agents and three ready-made templates in a small open repo: &lt;a href="https://github.com/honey-0203/ai-crawlers-robots-txt" rel="noopener noreferrer"&gt;ai-crawlers-robots-txt on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the firewall layer yourself
&lt;/h2&gt;

&lt;p&gt;You can fake a crawler's request with curl and look at the status code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -o /dev/null -w &lt;span class="s2"&gt;"%{http_code}\n"&lt;/span&gt; \
  -A &lt;span class="s2"&gt;"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"&lt;/span&gt; \
  https://yoursite.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;200&lt;/code&gt; means the request got through. A &lt;code&gt;403&lt;/code&gt; or a challenge page means something in front of your site is blocking that user agent. Repeat with &lt;code&gt;OAI-SearchBot&lt;/code&gt;, &lt;code&gt;PerplexityBot&lt;/code&gt; and &lt;code&gt;ClaudeBot&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One caveat: some CDNs verify real crawlers by IP, so a spoofed user agent can be treated differently from the real bot. It's still a quick way to catch the most common problem, a blanket "block AI bots" rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  What two big sites look like
&lt;/h2&gt;

&lt;p&gt;On 16 Nov 2026 I ran both layers against two well-known sites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;nytimes.com&lt;/strong&gt;: only 4 of 20 AI bots allowed in robots.txt, and only 2 of 9 live test requests got through. A deliberate choice for a publisher.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;hubspot.com&lt;/strong&gt;: all 20 allowed and all 9 live requests got through.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgdxk80h0pghhm1j3yej.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgdxk80h0pghhm1j3yej.jpg" alt="AI visibility check for nytimes.com: 4 of 20 AI bots allowed in robots.txt, 2 of 9 live requests got through" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're a business that &lt;em&gt;wants&lt;/em&gt; to be recommended by AI tools, your result should look like the second one.&lt;/p&gt;

&lt;h2&gt;
  
  
  A faster check
&lt;/h2&gt;

&lt;p&gt;If you don't want to script it, we built a free checker at CodedSEO that does both layers for 20 bots and also looks for &lt;code&gt;llms.txt&lt;/code&gt;: &lt;a href="https://codedseo.com/tools/ai-visibility-checker" rel="noopener noreferrer"&gt;AI Visibility Checker&lt;/a&gt;. No sign-up.&lt;/p&gt;

&lt;p&gt;Either way, check the firewall, not just the file.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>ai</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>Making JavaScript‑Heavy Sites Crawlable: A Practical SEO Guide</title>
      <dc:creator>CodedSEO</dc:creator>
      <pubDate>Fri, 30 Oct 2026 23:02:41 +0000</pubDate>
      <link>https://dev.to/codedseo_203994cd6fc761a8/making-javascript-heavy-sites-crawlable-a-practical-seo-guide-2ndm</link>
      <guid>https://dev.to/codedseo_203994cd6fc761a8/making-javascript-heavy-sites-crawlable-a-practical-seo-guide-2ndm</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you’re building a modern web app with React, Vue, or Next.js, you’ve probably run into the classic SEO dilemma: search engines see a blank page while users enjoy a rich, interactive experience. Google can render JavaScript, but it still imposes limits on resources, timeouts, and crawl budget. In this article I’ll walk through concrete steps to ensure that a JavaScript‑heavy site is discoverable, indexable, and ready for AI‑driven search tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Choose the Right Rendering Strategy
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strategy&lt;/th&gt;
&lt;th&gt;When to Use&lt;/th&gt;
&lt;th&gt;Trade‑offs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Server‑Side Rendering (SSR)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Content must be visible on first request; high SEO priority&lt;/td&gt;
&lt;td&gt;Requires a Node server or platform that supports SSR&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Static Site Generation (SSG)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Content is mostly static or changes infrequently&lt;/td&gt;
&lt;td&gt;Build step needed; not ideal for highly dynamic data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dynamic Rendering&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Legacy crawlers or third‑party bots that can’t execute JS&lt;/td&gt;
&lt;td&gt;Maintains a client‑side app for users while serving pre‑rendered HTML to bots&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you can afford the infrastructure, SSR or SSG are the cleanest options because they deliver full HTML to every request. For single‑page applications that rely on client‑side routing, dynamic rendering with a service like Rendertron or a self‑hosted solution is a practical fallback.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Implement a Simple Dynamic Rendering Middleware
&lt;/h2&gt;

&lt;p&gt;Below is a minimal Express middleware that detects Googlebot (or any crawler you list) and serves a pre‑rendered snapshot using the open‑source &lt;code&gt;prerender-node&lt;/code&gt; package.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// server.js (Node/Express)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;express&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'express'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;prerender&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'prerender-node'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;express&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Configure the prerender service URL (you can self‑host Rendertron)&lt;/span&gt;
&lt;span class="n"&gt;prerender&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'prerenderServiceUrl'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'https://service.prerender.io/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Only trigger for known bots&lt;/span&gt;
&lt;span class="n"&gt;prerender&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'crawlerUserAgents'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s1"&gt;'googlebot'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'bingbot'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'yandex'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'baiduspider'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prerender&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Serve static assets and your SPA entry point&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;express&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;static&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'public'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'*'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__dirname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;'/public/index.html'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Server running on port 3000'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deploy this middleware, and crawlers will receive a fully rendered HTML snapshot while regular users still get the SPA.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Optimize Your &lt;code&gt;robots.txt&lt;/code&gt; and Sitemap
&lt;/h2&gt;

&lt;p&gt;A clean &lt;code&gt;robots.txt&lt;/code&gt; tells crawlers what to index and what to skip. Avoid blocking JavaScript, CSS, or image assets unless you have a specific reason.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# robots.txt
User-agent: *
Allow: /
Disallow: /admin
Sitemap: https://example.com/sitemap.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Generate a sitemap that lists every canonical URL. For dynamic routes, you can create the sitemap at build time (SSG) or on‑the‑fly using a server‑less function.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Use Structured Data Early
&lt;/h2&gt;

&lt;p&gt;Search engines rely on JSON‑LD to understand page purpose, especially for local businesses, products, or events. Insert the script tag in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your rendered HTML (SSR/SSG) or in the pre‑rendered snapshot for dynamic rendering.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"application/ld+json"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"@context"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://schema.org"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"LocalBusiness"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CodedSEO"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://codedseo.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PostalAddress"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"streetAddress"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"123 Main St"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"addressLocality"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mohali"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"addressRegion"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PB"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"postalCode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"160001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"addressCountry"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"IN"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"telephone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"+91-1234567890"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even if the rest of the page is JavaScript‑driven, this static block is immediately visible to crawlers.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Prioritize Critical Content in the Initial HTML
&lt;/h2&gt;

&lt;p&gt;Place the most important headline, meta description, and primary call‑to‑action above the fold in the server‑rendered markup. This reduces the chance of Google truncating the render due to time limits.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Best SEO Services for Small Businesses&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"description"&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Affordable SEO and AI search solutions for small businesses and agencies."&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="c"&gt;&amp;lt;!-- Styles and critical CSS --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;header&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Boost Your Online Visibility&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;We help small businesses get found on Google, Maps, and AI tools.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"root"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/bundle.js"&lt;/span&gt; &lt;span class="na"&gt;defer&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The rest of the UI can hydrate once the JavaScript loads.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Test with Google’s Tools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;URL Inspection&lt;/strong&gt; – Paste a URL into the Search Console tool to see the rendered HTML and any indexing issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile‑Friendly Test&lt;/strong&gt; – Confirms that your page loads quickly on mobile devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rich Results Test&lt;/strong&gt; – Validates JSON‑LD markup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run these checks after each deployment. If you notice “Submitted URL was not indexed” or “Rendered page is empty,” revisit your rendering strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Keep an Eye on Crawl Budget
&lt;/h2&gt;

&lt;p&gt;Large SPAs can generate many URLs via client‑side routing. Use &lt;code&gt;rel="canonical"&lt;/code&gt; on each page to point back to the primary version, and ensure that duplicate content is avoided. For example, both &lt;code&gt;/products&lt;/code&gt; and &lt;code&gt;/products/&lt;/code&gt; should canonicalize to the same URL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"canonical"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://example.com/products"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Deploy Incrementally and Monitor
&lt;/h2&gt;

&lt;p&gt;Start with a single high‑traffic page, enable SSR or dynamic rendering, and observe the impact in Search Console. Once you confirm indexing, roll the changes out to the rest of the site. Incremental rollout reduces risk and gives you concrete data on performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. When to Consider a Headless CMS
&lt;/h2&gt;

&lt;p&gt;If your content changes often, a headless CMS (e.g., Strapi, Contentful) can serve pre‑rendered HTML via API endpoints. This keeps the front‑end lightweight while delivering SEO‑ready markup.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Final Thoughts
&lt;/h2&gt;

&lt;p&gt;JavaScript isn’t a barrier to SEO; it’s a matter of delivering the right HTML to the right audience. By combining SSR/SSG, dynamic rendering, clean &lt;code&gt;robots.txt&lt;/code&gt;, structured data, and regular testing, you can make any modern web app crawlable and ready for both traditional search and emerging AI‑driven tools.&lt;/p&gt;

&lt;p&gt;If you need a deeper audit or help implementing these steps, feel free to check out &lt;strong&gt;their website&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;I work on this every day at &lt;a href="https://codedseo.com" rel="noopener noreferrer"&gt;CodedSEO&lt;/a&gt;, and these are the checks we run first on every site.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Balbir Singh, Founder &amp;amp; Managing Director, CodedSEO&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>javascript</category>
      <category>crawling</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
