# HubSpot robots.txt

> Edit robots.txt in HubSpot under Content > Pages > SEO & Crawlers, set rules per domain or for all domains, and avoid blocking pages you need noindexed.

Canonical: https://scaplet.com/seo/hubspot-cms/robots-txt

Guide HubSpot HubSpot CMS · Robots.txt

Edit robots.txt in HubSpot under Content > Pages > SEO & Crawlers, set rules per domain or for all domains, and avoid blocking pages you need noindexed.

3 min

read

3

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

In HubSpot, go to Settings > Content > Pages, choose a domain (or Default settings for all domains), open the SEO & Crawlers tab and edit the Robots.txt section. Add one `Disallow: /url-slug` line per page, then click Save. Only content on a domain connected to HubSpot can be blocked this way.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fhubspot-cms%2Frobots-txt%20(%22HubSpot%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fhubspot-cms%2Frobots-txt%20(%22HubSpot%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fhubspot-cms%2Frobots-txt%20(%22HubSpot%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fhubspot-cms%2Frobots-txt%20(%22HubSpot%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

Content > Pages > SEO & Crawlers

Location

Per domain or all connected domains

Scope

Always no-index

hs-sites domains

HubSpotContentSearchBot

Site search bot

_01_Check it

## A HubSpot robots.txt that does what you meant

HubSpot's article describes two parts of the file. `User-agent` defines which search engine or web bot a rule applies to; the default is an asterisk, which covers all search engines. `Disallow:` takes a [URL slug](/glossary/url-slug), so `www.hubspot.com/welcome` appears as `Disallow: /welcome`. If you use HubSpot's [site search](/glossary/internal-search) module, HubSpot says to include `HubSpotContentSearchBot` as a separate user-agent so the search feature can crawl your pages. The empty `Disallow:` line in the example above is standard [robots.txt](/glossary/robots-txt) syntax, not something the HubSpot article spells out, so confirm search still works after you save.

Google reads only one group per crawler: the group with the most specific matching [user agent](/glossary/user-agent). Because the search bot has its own group in the example, it does not follow the `*` group at all. If you add a group for a named crawler such as [Googlebot](/ai-crawlers/googlebot), copy any shared `Disallow` lines into it, because it will ignore the `*` group.

Illustration built from HubSpot's two documented parts: block one page, keep site search working

```
User-agent: * Disallow: /welcome User-agent: HubSpotContentSearchBot Disallow:
```

_02_How it works

## Edit the file

Default vs per-domain settings
| Choice in the dropdown | Effect | Watch for |
| Default settings for all domains | One robots.txt applies to every connected domain | A rule meant for a staging or microsite domain also lands on your main domain |
| A specific domain, then Override default settings | That domain gets its own robots.txt, overriding the default | Later edits to the default no longer reach that domain |

1. 01

### Open Content > Pages

In your HubSpot account, click the settings icon in the top navigation bar. In the left sidebar menu, go to Content > Pages.
2. 02

### Pick the domain

Use the `Choose a domain to edit its settings` dropdown. `Default settings for all domains` is selected by default and edits the robots.txt for all connected domains. To change one domain only, select it and, if necessary, click Override default settings.
3. 03

### Open SEO & Crawlers

Click the SEO & Crawlers tab and edit the Robots.txt section.
4. 04

### Save

Click Save on the bottom left.

_03_Worth knowing

## What robots.txt will not do for you

### Connected domains only

HubSpot says only content hosted on a domain connected to HubSpot can be blocked in its robots.txt file.

### System domains are covered already

Content on HubSpot system domains containing `hs-sites` is always set as no-index in a robots.txt file, so you do not need to add rules for them.

### Scope is the host

Google applies rules only to the host, protocol and port where the file lives, so a rule on `www` does not govern a separate subdomain. Check each domain you connected.

### Not access control

Google notes crawlers can ignore robots.txt, so use authentication for anything private.

**Disallow does not remove a page from Google**HubSpot says to add content that hasn't yet been indexed to robots.txt, and to use a `noindex` meta tag for content search engines have already indexed. It also says the two methods should not be combined, because blocking the crawl stops search engines from seeing the tag. Google agrees: a blocked URL can still appear in results, without a description. Use [HubSpot noindex](/seo/hubspot-cms/noindex) for pages already in the index.

_04_Check it

## Check it worked

Run it per domain, since overrides make the files differ. Confirm your `Disallow` lines are present and nothing you want crawled is blocked. Google generally caches robots.txt for up to 24 hours, so a change may not take effect in Google at once. The [robots.txt glossary entry](/glossary/robots-txt) covers syntax and [Googlebot](/ai-crawlers/googlebot) covers how Google's crawler behaves. If you also publish a sitemap, see the [HubSpot XML sitemap guide](/seo/hubspot-cms/xml-sitemap).

Fetch the live file for each domain

```
curl -sL https://www.example.com/robots.txt
```

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Where is robots.txt in HubSpot?

In Settings > Content > Pages, pick a domain, open the SEO & Crawlers tab and use the Robots.txt section.

_02_ Can I use a different robots.txt for each HubSpot domain?

Yes. Select the domain in the dropdown and click Override default settings if needed. Otherwise the default settings for all domains apply.

_03_ Should I disallow a page and add noindex to it?

No. HubSpot says not to combine the methods, because blocking the crawl prevents search engines from seeing the noindex tag.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- hubspot.com
- google.com

1. 01 [Prevent content from appearing in search results | HubSpot Knowledge Base](https://knowledge.hubspot.com/seo/prevent-content-from-appearing-in-search-results) knowledge.hubspot.com · checked 2026-11-01
2. 02 [Introduction to robots.txt | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/robots/intro) developers.google.com · checked 2026-11-01
3. 03 [How Google interprets the robots.txt specification | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) developers.google.com · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn HubSpot noindex CMS](/seo/hubspot-cms/noindex) [Related Page blocked by robots.txt Crawlability](/seo-issues/blocked-by-robots-txt) [Read next HubSpot XML sitemap CMS](/seo/hubspot-cms/xml-sitemap) [Do Run a free site audit Free, about two minutes](/site-audit)

More in HubSpot CMS SEO
[HubSpot canonical tags](/seo/hubspot-cms/canonical-tags) [HubSpot CMS 301 redirects](/seo/hubspot-cms/redirects) [HubSpot CMS structured data](/seo/hubspot-cms/structured-data) [HubSpot noindex](/seo/hubspot-cms/noindex) [HubSpot robots.txt](/seo/hubspot-cms/robots-txt) [HubSpot XML sitemap](/seo/hubspot-cms/xml-sitemap)

Terms on this page
[URL slug](/glossary/url-slug) [Internal search](/glossary/internal-search) [robots.txt](/glossary/robots-txt) [User agent](/glossary/user-agent)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
