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.
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.
- Start with “site:” and the root domain.
- One by one, remove each subdomain (including: “www”) from the results with the “-inurl:” operator.
- 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.
- Once added to Chrome, start with the same “site:domain.com” search command.
- Under each result now appears a “Block subdomain.domain.com” link.
- Click on each link until your result page is empty.
- You’re almost done! Simply click on the extension icon, then “export,” then copy/paste into Excel.
Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.