How to Find Broken Links on a Website
Finding broken links on a website involves using specialized tools or manual auditing techniques to identify URLs that return server-side errors, most commonly the 404 Not Found status code. By scanning your domain for these dead ends, you can improve user exp...
Finding broken links on a website involves using specialized tools or manual auditing techniques to identify URLs that return server-side errors, most commonly the 404 Not Found status code. By scanning your domain for these dead ends, you can improve user experience, preserve link equity, and ensure search engine crawlers index your content efficiently.
Contents
Understanding the Impact of Broken Links
A broken link occurs when a hyperlink points to a destination that no longer exists, has been moved, or is temporarily inaccessible. From an end-user perspective, encountering these links is a primary driver of site abandonment. When a visitor clicks a link expecting information and receives an error page instead, their trust in the website’s reliability diminishes.
From a technical perspective, broken links are a source of "crawl waste." Search engine crawlers have a limited "crawl budget"—the amount of time and resources they allocate to index your site. When a crawler hits broken links, it spends time processing dead pages rather than indexing new or valuable content. Furthermore, if you are pointing to internal pages that have been deleted without proper redirects, you lose the "link juice" (authority) that those pages previously carried, which can negatively affect your site’s overall SEO performance.
Prerequisites for an Effective Audit
Before initiating a scan, you should define the scope of your audit. Small websites with fewer than 50 pages can often be audited manually or with free browser extensions. However, for larger sites, enterprise-grade tools are necessary to navigate complex URL structures and handle thousands of redirects.
Ensure you have access to your website’s CMS (Content Management System) or the ability to update your site's .htaccess file if you are using an Apache server, as identifying the links is only the first step. You must be prepared to fix them, either by restoring the destination page, updating the hyperlink, or implementing a 301 permanent redirect to a relevant, live page.
Tools and Methods for Link Verification
There are three primary categories of tools for identifying broken links: browser-based extensions, automated crawler software, and server-side log analysis.
- Browser Extensions: Tools like "Check My Links" or similar validator extensions allow you to scan the current page you are viewing. These are excellent for quick, targeted checks but are inefficient for site-wide audits.
- Automated Site Crawlers: Tools like Screaming Frog SEO Spider, Ahrefs, or Semrush act like search engine bots. They crawl your entire domain, following every link and recording the HTTP status code for each destination.
- Google Search Console: As a free, official resource, the "Crawl Stats" or "Page indexing" report in Google Search Console provides a list of URLs that Google encountered as 404 errors during its regular indexing process.
| Tool Type | Primary Advantage | Best Use Case |
|---|---|---|
| Browser Extension | Instant feedback per page | Content writers/editors |
| Site Crawler | Deep, site-wide diagnostics | SEO audits and maintenance |
| Search Console | Google’s perspective | Identifying external/orphan 404s |
| Log Analyzers | High-volume accuracy | Enterprise-level infrastructure |
Executing the Audit Process
Once you have selected your tool, the process follows a standardized workflow. First, initiate a crawl starting from your homepage. Configure your tool to include all subdomains and ignore external links if your goal is solely to fix internal broken links, or include them if you want to find broken outbound references.
As the crawler processes the site, watch for 4xx errors (client errors) and 5xx errors (server errors). While 404 Not Found is the most common, pay attention to 403 Forbidden (access denied) and 500 Internal Server Error codes, as these also indicate that the link is not functioning as intended.
Export the results into a spreadsheet. A useful audit report should contain three columns: the URL where the broken link is located (Source), the broken URL being linked to (Target), and the specific error code returned. This organization allows you to delegate fixing tasks effectively if you are working with a larger team.
Analyzing External vs. Internal Links
It is critical to distinguish between internal broken links and broken outbound links. Internal links—links pointing to pages on your own domain—are your responsibility to fix. You should prioritize these, as they directly affect your site structure.
Outbound links, which lead to other domains, are outside of your control. If an outbound link is broken, you cannot fix the destination. Instead, you have three options:
- Remove the link: If the reference is no longer relevant.
- Update the link: Find a current, working URL for the same topic.
- Replace the source: Link to an entirely different resource that provides similar value to your users.
Troubleshooting Common Challenges
One of the most frequent challenges in finding broken links is the presence of "orphan pages"—pages that are live but have no links pointing to them from the rest of your site. Because these pages aren't linked, standard crawlers may miss them unless you provide an XML sitemap. Ensure your sitemap is up to date and uploaded to your search engine accounts to minimize this risk.
Another issue is "false positives." Some security plugins or anti-bot measures on your server may block crawlers, causing them to report 403 Forbidden errors for perfectly healthy pages. If you notice a high number of errors on specific sections of your site, test the URLs manually in an incognito browser window to verify if they are truly broken or simply blocked to the crawler.
Developing a Maintenance Routine
A link audit should not be a one-time project. Websites are dynamic environments; URLs change as content is updated, reorganized, or deleted. Establish a recurring schedule—monthly for smaller sites and quarterly for larger ones—to perform a full link health check.
By integrating this into your standard operating procedures, you move from a reactive stance to a proactive one. This consistency prevents the accumulation of technical debt and ensures that your site’s architecture remains robust, accessible, and optimized for both human users and automated search engine bots.
Frequently Asked Questions
Can broken links directly hurt my site’s Google ranking?
Google does not penalize a site simply for having a few broken links. However, if a significant portion of your site is broken, it creates a poor user experience and prevents Google from crawling your site efficiently, which indirectly harms your search performance.
Should I worry about 4xx errors differently than 5xx errors?
Yes. A 4xx error indicates the link is broken (the page is gone or the URL is incorrect), while a 5xx error suggests a server-side problem. 5xx errors are often more urgent, as they indicate that your hosting environment is failing to deliver content that should be live.
What is the difference between a 301 and a 302 redirect?
A 301 redirect is a permanent move, telling search engines to pass the authority from the old URL to the new one. A 302 is a temporary redirect, signaling that the move is not permanent and search engines should keep the original URL in their index.
Do I need to fix links to deleted products or old blog posts?
You should redirect them. If you delete a product page that has backlinks from other sites, those links stop sending authority to your domain. A 301 redirect to a category page or a similar product preserves that value and ensures visitors do not hit a dead end.
How do I handle broken links in PDF files?
PDFs can contain many links that eventually rot. If you cannot edit the PDF to fix the links, try to redirect the traffic to a web version of the document (HTML) where you can easily update the hyperlinks as needed.
Action Plan: Your Next Steps
To begin, start by running a free, basic audit using a tool like the Screaming Frog SEO Spider (free version allows up to 500 URLs). Once you have your report, filter the data to display only 404 errors. Sort these by the number of inbound links to the broken page; fix the URLs with the most inbound links first to maximize the recovery of "link juice." Schedule your next check for 30 days from today to ensure your fixes are holding and no new issues have emerged.