Library / Reports, Analytics & Dashboards
Reports, Analytics & Dashboards
Find broken links and redirect chains from sitemaps with Slack reports
On a schedule, it builds reports using Data Table, Slack.
What it does
## Find the links on your site that are actually broken A link checker is easy to write and hard to make useful. Most of what one reports is a host that refuses HEAD, a host that refuses robots, or a redirect that only adds a trailing slash. This checks each distinct link once and then judges what came back. ### How it works The sitemap is read first - including the shape, where every is another sitemap rather than a page. Collect Every Link pulls every out of every page and deduplicates by URL, because the navigation is on all of them: a 40 page site produces about 2,000 links and a few hundred distinct ones. Each distinct URL is fetched once, with GET, without following redirects. GET because semrush.com answers 405 to HEAD while serving 200 to GET. Without following, because the whole question about a redirect is where it goes. Judge Every Link sorts the answers into four piles. *Broken* is 404, 410 and anything that refused to connect. *Blocked* is 403, 429 and 503 - reddit.com and g2.com answer 403 to any plain client, and calling that broken is what makes these reports unreadable. *Worth fixing* is a redirect whose target differs by more than a trailing slash, a scheme or a www. Everything else is fine. Only genuinely new problems reach Slack. ### Setup 1. Put your sitemap URL in Settings. Everything else there has a working default. 2. A Data Table called link_rot with columns link_key, url, status, verdict, found_on and last_seen. 3. A Slack credential. 4. check_external decides whether links to other sites are checked at all. Leaving it on is the point: your own pages rarely rot, the sites you linked to three years ago do.
The steps
- Check Every Monday
- Or Run It Now
- Settings
- Fetch The Sitemap
- Read The Sitemap
- Is It An Index Of Sitemaps?
- Fetch Each Child Sitemap
- Read The Child Sitemaps
- Gather Every Page URL
- Pick The Pages To Crawl
- Fetch Each Page
- Collect Every Link
- Check Each Link Once
- Judge Every Link
22 steps in total.
Similar automations
Monitoring, Ops & IncidentsFind broken external links in WordPress posts and email report via Gmail11 stepsCalendar & SchedulingUpdate a WordPress Redirect to the Next Zoom Meeting4 stepsSecurity & ComplianceSimulate Redirect Link Cloaking and Log Hits in Sheets5 stepsAI Agents & AssistantsFix broken YouTube description links and offers with Claude, Google Sheets and Slack30 steps