Glossary

Explore Meshline

Products Pricing Blog Support Log In

Start with your goals.

Book a call
Autonomous Operations

Robots.txt Disallow or Noindex Meta Tag? Decide by Indexing State

Should you block a HubSpot page with robots.txt or noindex? See which mechanism fits the page's current indexing state so you can choose the right one before you act.

An open padlock icon beside a webpage icon.

You have a HubSpot-hosted page you want out of search results.

The choice between a robots.txt Disallow rule and a noindex meta tag is not a matter of preference.

It depends on one fact: has the page already been indexed?

HubSpot's own guidance splits the decision that way.

Content that has not yet been indexed can be added to robots.txt to prevent it from being shown in search results.

Content that search engines have already indexed can receive a noindex meta tag in its head HTML.

Getting the order wrong can leave the page visible longer than you expect.

Start with the indexing state, not the tool

Before you open any settings, confirm whether the page currently appears in search results.

Search for the exact URL or a distinctive phrase from the page.

If it appears, treat it as already indexed.

If it does not appear, treat it as not yet indexed.

This check is a starting point, not proof.

A page can be indexed without ranking for the phrase you tried.

A page can also be absent from results for reasons unrelated to indexing.

When the answer matters, confirm the page's status in Google Search Console rather than relying on a single search.

Once you know the state, the mechanism follows from HubSpot's documented split.

When the page has not been indexed: use robots.txt

HubSpot documents robots.txt as the route for content that has not yet been indexed.

The rule tells search engines not to crawl and index pages using a specific URL slug.

There is a domain prerequisite.

Only content hosted on a domain connected to HubSpot can be blocked in your robots.txt file.

If the page sits on a HubSpot system domain containing hs-sites, HubSpot states that content is always set as no-index in a robots.txt file.

You do not need to add a rule for it.

To edit the file in HubSpot, open your account and click the settings icon.

Navigate to Content > Pages.

Select the domain whose robots.txt file you want to edit.

To edit all connected domains, choose Default settings for all domains.

To edit one domain, select that domain.

If needed, click Override default settings to override the defaults for that domain.

Then open the SEO & Crawlers tab and edit the Robots.txt section.

A robots.txt file has two parts.

The User-agent line defines which search engine or bot the rule applies to.

By default it is set to an asterisk, which includes all search engines.

The Disallow line tells a search engine not to crawl and index files or pages using a specific URL slug.

For each page, enter Disallow: /url-slug.

For example, a page at www.hubspot.com/welcome would appear as Disallow: /welcome.

Click Save when finished.

One HubSpot-specific note: if you use HubSpot's site search module, include HubSpotContentSearchBot as a separate user-agent so the search feature can crawl your pages.

What robots.txt does and does not do

Google draws a clear line between crawling and indexing.

Blocking Googlebot from crawling a page does not prevent the URL of the page from appearing in search results.

A robots.txt rule is a crawling instruction.

It is not a guarantee that the URL will never surface.

That distinction matters when the page is sensitive.

If you need a page to be inaccessible to both crawlers and users, Google names password protection as another method.

That is a separate control from search exclusion, and it changes who can reach the page at all.

When the page has already been indexed: use a noindex meta tag

If search engines have already indexed the content, HubSpot directs you to add a noindex meta tag to the content's head HTML.

The tag tells search engines to stop displaying the page in search results.

The steps differ by content type.

For website pages, landing pages, or blog posts, navigate to the content in your HubSpot account.

In the content editor, click Settings in the top right.

In the dialog box, click Advanced on the left sidebar.

In the Additional code snippets section, enter the following code in the Head HTML field: <meta name="robots" content="noindex">.

Close the dialog, then click Update or Publish to take the change live.

For knowledge base articles, the path is slightly different.

Navigate to Service > Knowledge Base and open the article.

Click Settings, then Advanced Options.

Enter the same code in the Head HTML field under Additional code snippets.

Close the dialog and click Update or Publish.

Do not combine the two methods

HubSpot states plainly that the noindex method should not be combined with the robots.txt method.

The reason is mechanical: a robots.txt Disallow rule prevents search engines from crawling the page, so they never see the noindex tag.

The tag is present in the HTML, but it cannot do its job if the crawler is turned away at the door.

If you have already added a Disallow rule for a page that is indexed, review that rule before relying on noindex.

The two instructions can work against each other.

A worked example: two pages, two mechanisms

Suppose your team has two HubSpot-hosted pages.

The first is a campaign landing page that has not yet been published or indexed.

The second is a live page that already appears in search results and should now be removed.

For the first page, a robots.txt Disallow rule fits HubSpot's documented condition: content that has not yet been indexed.

Add Disallow: /campaign-slug to the file for the connected domain.

Confirm the page is on a domain connected to HubSpot before you rely on this.

For the second page, a noindex meta tag fits the documented condition: content already indexed.

Add the tag to the page's Head HTML, then update or publish.

Do not add a Disallow rule for the same page, because that would block the crawler from reading the tag.

This example is illustrative.

Your own pages may sit on different domains or have different publication states.

Check each page's actual condition before choosing.

What to verify after the change

HubSpot notes that search engines need time to recrawl and deindex content after a noindex tag or robots.txt update.

If the page still appears in results, HubSpot lists specific items to confirm.

  • Page accessibility. The page must be publicly accessible for search engines to crawl it. Private or password-protected pages will not be crawled, which prevents the noindex tag from being read.
  • Head HTML. Check the Head HTML field in the page settings and the live page source to confirm the noindex tag was saved and is rendering correctly.
  • robots.txt conflicts. Review the file to confirm no Disallow rules are blocking search engines from accessing the page. If crawlers are blocked, they cannot read the noindex tag.

For Google search results specifically, HubSpot mentions Google Search Console's Removals Tool as a way to accelerate deindexing.

That tool is a separate step from the page-level tag or rule, and it does not change the underlying indexing state on its own.

Decide, then check the condition you relied on

The decision comes down to one question: has the page already been indexed?

If not, a robots.txt Disallow rule is the documented route, provided the page is on a domain connected to HubSpot.

If it has, a noindex meta tag is the documented route, and the robots.txt rule should not also be applied to that page.

Neither method promises immediate removal or a fixed timeline.

Search engines must recrawl, and HubSpot's troubleshooting list is the place to confirm that your change is actually visible to them.

If the page must be inaccessible rather than merely excluded from search, password protection is a different control with a different effect.

If you are mapping how organic pages feed into your demand and lifecycle workflow, the next question is often how to keep published content aligned with the campaigns it supports.

You can compare archiving with archive and unpublish when a page's future is unclear, or review the Removals Tool against noindex for outdated content.

Source references: knowledge.hubspot.com; developers.google.com.

How Meshline can help. Connect automation, Organic Marketing (demand generation), and customer lifecycle management (Revenue Intelligence).

Bring topic planning, content publishing and performance feedback into the conversation about your workflow. Book a Meshline demo.

Revenue Intel

Ask us about this workflow.

Tell us what you want to fix or automate. We'll reply with the most useful next step.

See how we can help

Implementation decisions

Put this into practice

Before choosing a solution, define the problem, the available data and who will review the outcome.