Broken link checker: free n8n workflow template
By Siam Ahmed, software engineer · 3 min read · Updated
Broken links hurt visitors and SEO. Every Monday this workflow opens a page on your site, tests every link on it that points to the same site, and emails you a list of the ones that return an error or do not answer.
Download the template
How it works
- Every Monday at 8 starts the scan.
- Page to scan holds the page to check, for example your homepage or a page that lists all your pages.
- Get page downloads the page and Extract links collects up to 200 unique links on the same site.
- Check link requests each one with a 10-second timeout and follows redirects.
- Collect broken keeps links that return 400 or higher or no answer, and Email alert sends one report. No email is sent when nothing is broken.
Nodes used: Schedule Trigger, Code, HTTP Request, Send Email.
What you need
- Any SMTP account to send email from
Set it up
- Import the workflow and set
startUrlin Page to scan, with https://. - Open Email alert, add an SMTP credential and set the from and to addresses.
- Activate the workflow. To test, add a link to a page that does not exist and run it once.
Ways to customise it
- Scan several pages by listing more URLs in Page to scan.
- Include links to other websites by removing the same-host check in Extract links.
- Post the report to Slack or save it to a Google Sheet.
Where to run it
Scheduled workflows need n8n running all the time. You can try it on your own computer, but for real use it belongs on a server. serverserv n8n Hosting gives you n8n pre-installed on your own KVM server with HTTPS, from $13.39 a month, or $8.39 a month on a 3-year term, with no execution limits.
Questions
Does it crawl my whole website?
No. It checks every same-site link on the page you choose, up to 200. Point it at a page that links to all your pages, or list several pages, for wider coverage.
Why do broken links matter for SEO?
Broken links waste search engine crawling and lead visitors to error pages, which makes your site look neglected. Fixing them keeps link value flowing to your real pages.
Is this n8n template free to use?
Yes. It is free under the MIT licence, for personal and business use.
Sources
Related
Website form to Google Sheets and Slack
send website contact form leads to Google Sheets and Slack, with email validation and a reply to the form.
n8n templateView →AI reply drafts for Gmail
Free n8n workflow that writes an AI reply draft for every new Gmail message and saves it in the same thread. N
n8n templateView →Private Telegram AI assistant
Free n8n workflow for a private Telegram AI chatbot with conversation memory, locked to your own user ID.
n8n templateView →