Link Checker: Finding and Fixing Broken URLs
Broken links damage SEO, hurt user experience, and undermine site credibility. Checking for them should be part of your regular maintenance routine. Here’s what’s available in 2026.
Online Tools
W3C Link Checker (http://validator.w3.org/checklink) remains a solid option for checking individual pages. Point it at a URL and it crawls the page’s links, reporting broken ones with HTTP status codes. Good for quick spot-checks, but not efficient for large sites.
Broken Link Check (http://www.brokenlinkcheck.com/) offers automated scanning of entire websites. Upload your sitemap or let it crawl your domain, and it generates a report. Useful if you prefer not to manage tools locally.
Command-Line Tools
LinkChecker is the standard open-source solution. Install it via your package manager:
apt install linkchecker # Debian/Ubuntu
dnf install linkchecker # RHEL/Fedora
brew install linkchecker # macOS
Check a single page:
linkchecker https://example.com/page
Crawl an entire site:
linkchecker --recursive https://example.com
Output results to an HTML report:
linkchecker --recursive --output=html > report.html https://example.com
Useful flags:
--timeout=10— Set connection timeout in seconds--threads=4— Run 4 simultaneous checks (speeds up crawling)--user-agent="Mozilla/5.0..."— Spoof user agent for picky servers--ignore-url=^https://external-domain— Skip checking external domains--no-status-messages— Suppress progress output in cron jobs
muffet
For a faster alternative, muffet is a modern link checker written in Go:
go install github.com/rclone/muffet/v2@latest
muffet -b 5 https://example.com
The -b flag sets concurrent requests. Much faster than LinkChecker on large sites.
Automated Checking in CI/CD
If your site is version-controlled, add link checking to your pipeline. Example GitHub Actions workflow:
name: Check Links
on: [push, pull_request]
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install linkchecker
run: apt-get update && apt-get install -y linkchecker
- name: Check links
run: linkchecker --recursive https://your-site.com
This catches broken links before they hit production.
For WordPress
If you’re running WordPress, the Broken Link Checker plugin (search it in your plugin directory) automates the process. It monitors links in posts, pages, and comments, flagging broken ones with visual indicators. Note that it runs background scans and can impact performance on large sites—consider running checks on a staging environment first.
Performance Considerations
Large sites need careful tuning:
- Use threading/concurrency flags to speed up crawling
- Skip external domains unless necessary—checking third-party sites slows things down and may trigger rate limits
- Schedule checks during low-traffic windows
- Cache results between runs to avoid redundant checks
- Respect robots.txt and rate-limit yourself to avoid hammering servers
Integration with Monitoring
For ongoing monitoring, integrate link checks into your uptime monitoring stack. Services like Uptimerobot or custom Nagios checks can run LinkChecker periodically and alert you when broken links appear.
Regular link audits keep your site healthy. Pick a tool that fits your workflow—for quick checks, use the online tools; for automation and CI/CD, go with LinkChecker or muffet.
