Robots.txt is a simple text file which can be placed in the website’s root directory. This file contains information for search engine bots, such as the Google bot. The information tells the bot which folders/sections on the website it should not crawl.re.
How to Fix? There are many different ways to fix this issue:
Urgent fix – Add a removal request in the Google Search Console
If these pages contain information that may affect your brand financially or legally. You may consider using this removal feature in Google Search Console.
It takes less than 15 min in my experience to get the page removed after you put in the request.
Steps:
-
- Go to https://search.google.com/search-console/
- Verify your domain if it is not already there. You can verify using DNS, HTML, Tag Manager, Google Analytics or other methods. To start the process click on add property and follow the instructions.
If you need help to verify search console, follow this guide from Google.
-
- Under indexing click on Removal.
- Under Temporary removals > Request a removal, click on new request.
- Under indexing click on Removal.

-
- Add the URL, and choose to remove this URL-only option.

-
- Done
Add a no-index tag to the webpage header
Another way to make sure that the search bot does not index a page is to add a no index tag to the page.
Where to add?
This tag goes in the webpage head.
What’s the tag?
<meta name=”robots” content=”noindex, nofollow” />.
How to add?
For WordPress:
Use your SEO plugin to add noindex to this page, if you are using Yoast SEO plugin you can do this by:
-
- Login to backend of your website
- Find and edit the page you want to hide
- Under Yoast settings go to the advanced tab
- And choose no for both these options below:
For Shopify:
For Shopify you will need to add some code to the theme.liquid to search for the page URL and add the no index tag to that page.
Here is the code to add:
{% if handle contains ‘page-url-you-want-to-exclude’ %}
<meta name=”robots” content=”noindex”>
{% endif %}
It goes into your theme.liquid file which can be found under online store > Customise > Edit code.
Other than the two options above you can always make sure there are no internal/external links going to the pages you want to hide. It’s a good chance that Google bot crawled these pages because they were linked from someplace on the internet. You can always add more security to these types of pages like a login page to avoid these issues in the future.
Contact Melbourne SEO Consulting for help on any of the above solutions.

