Check the SEO of the pages your server actually sends (free script)
By Jacobo López-Cortijo ·
On 20 November I published a blog post on this site without checking the live pages. When I did run a check on the pages the server actually sent, it found that the language switch on every blog post led to a 404. Nothing in the code said so. Only the served page did.
That check is now free for anyone: served-seo-check on GitHub. It's one file, there's nothing to install except Node.js, and it's one command:
node served-seo-check.mjs https://your-site.comWhy check the served pages and not the code?
Search engines never see your code, your CMS settings or your editor preview. They see the HTML your server sends back. A plugin, a cache, a redirect or a build step can change that HTML after you press publish, and nothing warns you. A stray noindex is easy to miss, because a page that isn't indexed doesn't send you an error.
What it checks
- Every page in your sitemap answers 200, without redirecting, and isn't marked noindex.
- One title, one meta description, and one canonical that points to the page itself.
- Language versions (hreflang) that point to each other, in both directions.
- Structured data (JSON-LD) that actually parses.
- Internal links that don't end in an error.
It ends with one line, PASS or FAIL, so you can run it after every deploy.
A check that can't fail proves nothing
Before it looks at your site, the script runs itself on 16 pages I broke on purpose and on 3 clean ones. If it misses one of the broken pages, or complains about a clean one, it stops instead of giving you a result.
Writing it taught me why the clean pages matter. My first version only understood tags written one way: rel first, then hreflang, then href, in double quotes, which is how this site writes them. HTML allows any order and any quotes, and other tools write them differently. On another site it could have reported missing tags that were there. Now one of the clean test pages is written the other way, and it has to pass.
What I found testing it
I ran it on four live sites before publishing: this one, QuickLease, a WordPress site in 15 languages, and a client's WordPress site. On the client's site it couldn't read anything: the host answers automated tools with a bot-protection page instead of the sitemap. The script now says that plainly, instead of saying there is no sitemap.
That doesn't mean Google is blocked. It means it's worth asking your host, and checking one page in Search Console's URL Inspection, which shows what Google actually received.
What it does not do
- It doesn't run JavaScript, so it shows what a crawler gets before any scripts run.
- It doesn't measure speed, rankings or whether your content is any good.
- It doesn't prove Google indexes you. Search Console does that.
If it gets something wrong on your site, open an issue or write to me, and I'll fix it for everyone. If you use Claude Code, I also packaged Google's Mantis security review the same way: free, and only the parts that are safe to run on your laptop.
If you have a question about your business's website, write to me, even if you're not hiring anyone. I'll answer it myself.
Talk soon,
Jacobo
served-seo-check
The script from this post: one file, no dependencies, Node.js 18 or newer. Free and open source.