How to quickly find and export all subdomains indexed by Google

Performing an SEO audit? Contributor Max Prin demonstrates how to find all of a website's indexed subdomains using a simple (and free) Chrome plugin.

Chat with SearchBot

seoguide_262955354-ss-1920x1080

An SEO audit is rarely limited to the www (or non-www) version of a website. When looking for potential duplicate content, it’s often important to know how many subdomains exist and, more importantly, how many of them are indexed by Google.

The good old search operators

An easy way to find indexed subdomains is to use search operators.

  1. Start with “site:” and the root domain.

sudmains-01

  1. One by one, remove each subdomain (including: “www”) from the results with the “-inurl:” operator.

sudmains-02

  1. When there are no more results for Google to return, your query with the search operators should include all subdomains indexed.

However, this technique has its limits. It’s unlikely that the site you’re auditing has as many subdomains as wordpress.com, but you may come across a site with several dozen subdomains. This can potentially cause the following issues:

  • The process can be long, especially if it needs to be done for several domains.
  • You might get Google “captchas” along the way.
  • The size of queries is limited (around 30 keywords). Thus, if your query is too long (too many -inurl operators), you will get a 400 error page from Google.
  • Once you’re done, you still need some editing to create a nice list of subdomains to work with.

The solution: a simple Chrome extension, by Google

This extension, Personal Blocklist (by Google), will make your life easier. It allows you to “block” domains from appearing in your search results.

The key here is that the extension operates at the subdomain level and stores the domains in a list.

  1. Once added to Chrome, start with the same “site:domain.com” search command.
  2. Under each result now appears a “Block subdomain.domain.com” link.

Sudmains 04

  1. Click on each link until your result page is empty.

sudmains-05

  1. You’re almost done! Simply click on the extension icon, then “export,” then copy/paste into Excel.

Subdomainsgif

Enjoy!


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.


About the author

Max Prin
Contributor
Max Prin is the Head of Technical SEO at Merkle. The SEO technical team ensures the accuracy, feasibility and scalability of the agency’s technical recommendations. Max supports Merkle’s SEO department by developing SEO best practices, tools and processes through research and testing. Max is also in charge of developing and publishing TechnicalSEO.com.

Get the must-read newsletter for search marketers.