Connected domains only
HubSpot says only content hosted on a domain connected to HubSpot can be blocked in its robots.txt file.
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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.
User-agent: *
Disallow: /welcome
User-agent: HubSpotContentSearchBot
Disallow:| 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 |
In your HubSpot account, click the settings icon in the top navigation bar. In the left sidebar menu, go to Content > Pages.
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.
Click the SEO & Crawlers tab and edit the Robots.txt section.
Click Save on the bottom left.
HubSpot says only content hosted on a domain connected to HubSpot can be blocked in its robots.txt file.
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.
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.
Google notes crawlers can ignore robots.txt, so use authentication for anything private.
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.
curl -sL https://www.example.com/robots.txt3 questions people ask next, answered from the sources on this page.
In Settings > Content > Pages, pick a domain, open the SEO & Crawlers tab and use the Robots.txt section.
Yes. Select the domain in the dropdown and click Override default settings if needed. Otherwise the default settings for all domains apply.
No. HubSpot says not to combine the methods, because blocking the crawl prevents search engines from seeing the noindex tag.
Run the free audit, then approve the fixes. Every change can be undone.