Every time we publish or edit a page, we check what search engines and social networks will actually read from it: the title, the meta description, the canonical URL and the Open Graph tags. We don't look in the CMS. We look in the HTML the server sends back.

You don't need an SEO tool for this. curl, grep and a short loop are enough.

Fetch the page the way a browser does

curl -s -A "Mozilla/5.0 Chrome/120" --max-redirs 0 "https://example.com/page?nc=$RANDOM" 

A few details here are easy to skip and worth keeping.

-A sets a browser user agent. Some CDNs and firewalls serve something different, or nothing at all, to curl's default user agent.

--max-redirs 0 stops curl from following redirects. If the page redirects, you want to know, not quietly read the next page.

?nc=$RANDOM adds a throwaway query parameter so you're less likely to get a stale copy from a cache. Make sure your pages declare a canonical URL, or that parameter could create duplicate URLs in analytics.

Check the status code first

curl -s -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0 Chrome/120" --max-redirs 0 "https://example.com/page" 

If this doesn't print 200, stop there. The rest of the checks don't matter until the page itself answers.

Pull out the tags

curl -s -A "Mozilla/5.0 Chrome/120" "https://example.com/page" \ | grep -oiE '<title>[^<]*</title>|<meta (name|property)="(description|og:title|og:description|og:image|og:url)"[^>]*>|<link rel="canonical"[^>]*>' 

This prints the title, the description, the four Open Graph tags that matter most for link previews, and the canonical link. It isn't a full HTML parser. If your CMS writes attributes in a different order, for example content before name, adjust the pattern or switch to a parser. For a quick check of your own templates, it's usually enough.

One thing that confused us at first: some CMSs store & in attributes as &amp;amp;. Browsers and crawlers decode it correctly, so it isn't a bug, but it makes the grep output look wrong.

Count the H1s while you're there

curl -s -A "Mozilla/5.0 Chrome/120" "https://example.com/page" | grep -oi '<h1' | wc -l 

You want 1. This simple version also counts H1s inside scripts or comments, so treat anything other than 1 as "look closer," not as a final answer.

Run it on a list of URLs

Put your URLs in urls.txt, one per line, and loop:

while read -r url; do code=$(curl -s -o /tmp/page.html -w "%{http_code}" -A "Mozilla/5.0 Chrome/120" --max-redirs 0 "$url") title=$(grep -oiE '<title>[^<]*</title>' /tmp/page.html | sed -E 's/<\/?title>//gi') desc=$(grep -oiE '<meta name="description" content="[^"]*"' /tmp/page.html | sed -E 's/.*content="//; s/"$//') h1=$(grep -oi '<h1' /tmp/page.html | wc -l) printf '%s\t%s\t%s\t%s\t%s\n' "$url" "$code" "$h1" "${#title}" "$title" [ -z "$desc" ] && echo " missing meta description" sleep 0.5 done < urls.txt 

The output gives you, per URL: status, H1 count, title length and the title itself. If the status isn't 200, ignore the rest of that row. A redirect response has its own tiny HTML page, and you'd be reading that instead. Title length is a quick sanity check: much over about 60 characters and it will probably be cut off in search results.

Search for words that shouldn't be there

This is the check I'd add first if you only add one. Keep a list of words or phrases your pages must never contain (outdated offers, old product names, anything legal has flagged), one per line in banned.txt, and run:

curl -s -A "Mozilla/5.0 Chrome/120" "https://example.com/page" | grep -oiF -f banned.txt | sort | uniq -c 

No output means the page is clean. We run this after every publish, because old wording has a way of coming back through copied blocks and templates. I've seen that happen with our own offer lines.

None of this replaces a proper crawler for a big site. But for checking a page you just published, or twenty pages after a template change, it's faster than opening each one, and it shows you exactly what search engines and link previews will see.

I'm Evgenii, founder of NeuroHelper AI, founded in 2024. I write about technical SEO for sites that change fast.