
What is the Difference between Disallow and Noindex?
Disallow:
A disallow command is specified on the robots.txt file. When the command has specified the robots will not crawl a page, file or a directory. But still, these pages are indexed and are found on the search results of Google.
For example:
When you specify a command disallow: /tag/ then robots will not crawl all those pages which are starting with the term ‘tag’.
You can check your robots.txt file in Google Search Console or directly you can check it on Google i.e www.yoursite.com/robots.txt. It is publicly available.
Implementation of Disallow:
Best option:
Create your robots.txt file in notepad and save the file with a name: robots.txt. Drop an email to the technical person and ask him/her to download it and update the file on the server. Your job is done.
Note:
If you make any changes or add new commands in the file after updating the file we request you to test the file and submit it to Google.
Examples for robots.txt:
Case1:
Blocking all web crawlers from all the content.
User-agent: *
Disallow: /
Robots.txt file URL: www.yoursite.com/robots.txt
By using the above syntax we are giving instructions to the robots not to crawl all the pages of the site including the homepage.
Case-2
: Allowing all the web crawlers to crawl the content.
User-agent: *
Disallow:
By using the above syntax we are giving instructions to the robots to crawl all the pages of the site including the homepage.
Case-3:
Blocking a specific sub-folder
User-agent: Googlebot
Disallow: /yoursite-subfolder/
By using the above syntax we are giving instructions to the user-agent (Googlebot) not to crawl the specific subfolder.
Case-4:
Blocking a specific webpage
User-agent: Bingbot
Disallow: /example.html/
By using the above syntax we’re giving instructions to the user-agent(Bingbot) not to crawl the page.
Understanding the technical terms:
1. User-agent:
In most of the sitemaps the user-agent is * which specifies the web crawler.
2. Disallow:
This command will give the instructions to the user-agent, not to crawl a given page or a file or a directory. Only one disallow line is allowed in each URL.
3. Allow:
This command will give instructions to the user-agent to crawl the pages or subfolder even though the parent page or a subfolder may be disallowed.
4. Crawl-Delay:
By the name itself only we can define i.e how many seconds a crawler should wait before loading and crawling the page content. This command is mostly seen in news related websites.
5. Sitemap:
Used to call out the location of any XML sitemaps associated with is URL. This command is supported only in Google, Ask, Bing and Yahoo.
2. What is noindex?
Generally, this command is specified on a particular page. If you don’t want to see a page on search results you need to go with the below command.
If your site is built on HTML you can ask the developer to implement the tag <meta name=” robots” content=”noindex” /> in head section of the page.
When you implement the command on the page the robots will not be index the page but still, robots can crawl the page and can access content on the page and follow the links on that page. After implementing the tag and if the page still appears in search results you need to delete the page from GSC.
Difference between Disallow and Noindex
| S.No | Particulars | Crawl | Index | Content access | Links to other pages |
| 1 | Disallow | No | Yes | No | No |
| 2 | Noindex | Yes | No | Yes | Set Yes/ No |
An explanation for the above table:
Case-1
If you set disallow for an ‘X’ page then Google-bot will not crawl the page but can show the page on search results(index).
Case-2
If you set noindex for an ‘X’ page then google-bot will not index i.e will not show the page on search results but, the spider can crawl the page at the same time content & the links to the other pages are accessible.
Case-3
If you want to set disallow and noindex for the same page then first you need to set NOINDEX and later on if the result is not appearing on SERP then you need to set disallow in robots.



