When managing a docs site SEO, you might encounter situations when external websites link to incorrect or non-existent pages from your site. These unwanted backlinks can impact your site’s search performance and create unnecessary 5xx errors.
Solution is to use Google Search Console’s disavow links tool to create a list of unwanted backlinks.
Detecting incorrect external links
Recently, I encountered an interesting case where a (spammy looking) website linked to Expo documentation with a typo in the URL. Google Search Console reported this as a 5xx Page not indexed.
Now, even though the page exists, requesting a re-index validation in Google Search Console wouldn’t solve this problem (I tried this and that’s how I stumbled upon the solution).
This is a common issue many website owners face, external sites linking to incorrect URLs that you don’t have direct control over.
Understanding the impact
Incorrect external links can cause multiple issues such as: 404 error reports and 5xx Page not indexed.
Using Google’s Disavow links tool
Google Search Console provides adding disavow links tool, which tells Google to ignore specific backlinks when assessing your site during the next crawl.
To use it, you can :
- Gather a list of all the external links that are broken
- Create a text (
.txt
) file containing these URLs you want Google to ignore
# Pages to disavow
https://example.com/incorrect-page
https://another-site.com/wrong-link
If required, you can also also disavow the complete domain by adding it to the text file:
# Sites to disavow
domain:example.com
- Open Google Search Console’s disavow links tool page and select your domain property under Select property
- Upload your disavow file and confirm the submission
Summary
The Google Search Console disavow links tool is a valuable resource for managing unwanted or incorrect external links. While it shouldn’t be your first solution as per Google’s documentation, it’s an effective way to handle situations where you can’t get incorrect links modified at their source.