Skip to content

Block unwanted external links using Google Search Console's Disavow

Published:

2 min read

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.

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.

ss1

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.

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 :

  1. Gather a list of all the external links that are broken
  2. 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
  1. Open Google Search Console’s disavow links tool page and select your domain property under Select property
  2. Upload your disavow file and confirm the submission

ss2

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.


Previous Post
Creating a /slash page
Next Post
Uninstall a Node.js version using Volta on macOS

I'm a software developer and technical writer. On this blog, I share my learnings about both fields. Recently, I have begun exploring other topics, so don't be surprised if you find something new here.

Currently, working as a documentation lead at Expo.