Prevent content from appearing in search results (2024)

Last updated: May 23, 2024

You can prevent new content from appearing in results by adding the URL slug to a robots.txt file. Search engines use these files to understand how to index a website's content. Content on HubSpot system domains is always set as no-index in a robots.txt file.

If search engines have already indexed your content, you can add a "noindex" meta tag to the content's head HTML. This will tell search engines to stop displaying it in search results.

Please note: only content hosted on a domain connected to HubSpot can be blocked in your robots.txt file. Learn more about customizing file URLs in the files tool.


Use robot.txt files

You can add content that hasn't yet been indexed by search engines to a robots.txt file to prevent it from being shown in search results.

To edit your robots.txt file in HubSpot:

  • In your HubSpot account, click the settings settings icon in the top navigation bar.

  • In the left sidebar menu, navigate to Content >Pages.

  • Select the domain whose robots.txt file you want to edit:
    • To edit the robots.txt file for all connected domains, click the Choose a domain to edit its settingsdropdown menu and selectDefault settings for all domains.
    • To edit the robots.txt file for a specific domain, click the Choose a domain to edit its settingsdropdown menuand select the domain. If necessary, clickOverride default settings. This will override any robots.txt default settings for this domain.
  • Click theSEO & Crawlers tab.
  • In theRobots.txt section, edit the content of the file. There are two parts of a robots.txt file:.
    • User-agent: defines the search engine or web bot that a rule applies to. By default, this will be set to include all search engines, which is shown with an asterisk (*), but you can specify specific search engines here. If you're using HubSpot's site search module, you will need to include HubSpotContentSearchBot as a separate user-agent. This will allow the search feature to crawl your pages.
    • Disallow: tells a search engine not to crawl and index any files or pages using a specific URL slug. For each page you want to add to the robots.txt file, enter Disallow: /url-slug (e.g., www.hubspot.com/welcome would appear as Disallow: /welcome).

Prevent content from appearing in search results (1)

  • In the bottom left, clickSave.

Learn more about formatting a robots.txt file in Google's developer documentation.

Use "noindex" meta tags

If content has already been indexed by search engines, you can add a "noindex" meta tag to instruct search engines to stop indexing it in the future.

Please note: this method should not be combined with the robots.txt method, as this will prevent search engines from seeing the "noindex" tag.

Add "noindex" meta tags to pages and posts

  • Navigate to your content:

    • Website Pages: In your HubSpot account, navigate to Content > Website Pages.
    • Landing Pages: In your HubSpot account, navigate to Content > Landing Pages.
    • Blog: In your HubSpot account, navigate to Content > Blog.
  • Click the name of your content.
  • In the content editor, click theSettings menu and select Advanced.
  • In the Additional code snippets section of the dialog box, add the following code to the Head HTML field: <meta name="robots" content="noindex">.

Prevent content from appearing in search results (2)

  • To take this change live, click Updatein the top right.

Add "noindex" meta tags to knowledge base articles

  • In your HubSpot account, navigate to Content > Knowledge Base.

  • Click the name of your content.
  • In the article editor, click theSettingstab, then clickAdvanced Options.
  • In theAdditional code snippetssection, add the following code to theHead HTMLfield:<meta name="robots" content="noindex">.

Prevent content from appearing in search results (3)

  • In the top right, clickUpdateto take this change live.

If you have a GoogleSearch Consoleaccount, you can accelerate this process for Google search results with Google's Removals Tool.

Prevent content from appearing in search results (2024)
Top Articles
Mega Millions
The Worth of a Real Estate Note
Where To Go After Howling Pit Code Vein
What is Mercantilism?
Ghosted Imdb Parents Guide
DEA closing 2 offices in China even as the agency struggles to stem flow of fentanyl chemicals
Apex Rank Leaderboard
Encore Atlanta Cheer Competition
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Fallout 4 Pipboy Upgrades
Call Follower Osrs
Turbocharged Cars
What Is A Good Estimate For 380 Of 60
REVIEW - Empire of Sin
Facebook Marketplace Charlottesville
Nonne's Italian Restaurant And Sports Bar Port Orange Photos
Red Tomatoes Farmers Market Menu
Fairy Liquid Near Me
735 Reeds Avenue 737 & 739 Reeds Ave., Red Bluff, CA 96080 - MLS# 20240686 | CENTURY 21
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
623-250-6295
10 Fun Things to Do in Elk Grove, CA | Explore Elk Grove
Jet Ski Rental Conneaut Lake Pa
Decosmo Industrial Auctions
U Of Arizona Phonebook
Is Windbound Multiplayer
Wisconsin Volleyball Team Boobs Uncensored
Cb2 South Coast Plaza
Chicago Based Pizza Chain Familiarly
Cylinder Head Bolt Torque Values
Trinket Of Advanced Weaponry
Valley Craigslist
Airg Com Chat
Boneyard Barbers
About | Swan Medical Group
20 Best Things to Do in Thousand Oaks, CA - Travel Lens
5 Tips To Throw A Fun Halloween Party For Adults
Fwpd Activity Log
Directions To The Closest Auto Parts Store
30 Years Of Adonis Eng Sub
Does Target Have Slime Lickers
Quick Base Dcps
Blue Beetle Showtimes Near Regal Evergreen Parkway & Rpx
Blow Dry Bar Boynton Beach
Ratchet And Clank Tools Of Destruction Rpcs3 Freeze
Kenwood M-918DAB-H Heim-Audio-Mikrosystem DAB, DAB+, FM 10 W Bluetooth von expert Technomarkt
Bf273-11K-Cl
Mejores páginas para ver deportes gratis y online - VidaBytes
Craigslist Marshfield Mo
Diamond Spikes Worth Aj
Publix Store 840
Uncle Pete's Wheeling Wv Menu
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6158

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.