Free auditStart free
GuideHubSpot CMS · Robots.txt

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.

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 withChatGPTClaudePerplexityGoogleAI Mode

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
01Check 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, so www.hubspot.com/welcome appears as Disallow: /welcome. If you use HubSpot's site 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 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. 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, 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:
02How it works

Edit the file

Default vs per-domain settings
Choice in the dropdownEffectWatch for
Default settings for all domainsOne robots.txt applies to every connected domainA rule meant for a staging or microsite domain also lands on your main domain
A specific domain, then Override default settingsThat domain gets its own robots.txt, overriding the defaultLater 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.

03Worth 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.

04Check 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 covers syntax and Googlebot covers how Google's crawler behaves. If you also publish a sitemap, see the HubSpot XML sitemap guide.

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.

01Where is robots.txt in HubSpot?

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

02Can 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.

03Should 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. 01Prevent content from appearing in search results | HubSpot Knowledge Baseknowledge.hubspot.com · checked 2026-11-01
  2. 02Introduction to robots.txt | Google Search Centraldevelopers.google.com · checked 2026-11-01
  3. 03How Google interprets the robots.txt specification | Google Search Centraldevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane