What is noindex?

The robots meta tag tells search engines whether to index a page and follow its links.

This page has noindex, follow set in its robots meta tag. This means:

  • noindex — Search engines will NOT include this page in search results
  • follow — Search engines WILL follow links on this page to discover other content
!

Common use cases for noindex: login pages, admin dashboards, internal tools, draft content, thank-you pages, paginated archives, and search result pages.

SEO Tag Generated

Generated robots meta tagHTML
<!-- noIndex() helper adds this meta tag -->
<meta name="robots" content="noindex, follow" />

Source Code

NoIndexPage.tsxTypeScript
import {
  mergeSEOConfig,
  noIndex,
  SEOHead,
} from "react-ssr-seo";
import { siteConfig } from "../config/seo";

const pageConfig = mergeSEOConfig(siteConfig, {
  title: "Internal Page",
  description: "This page should not be indexed.",
  robots: noIndex(),  // { index: false, follow: true }
});

<head>
  <SEOHead {...pageConfig} />
</head>

All Robots Options

react-ssr-seo provides helper functions and fine-grained control over robots directives.

Helper / OptionOutputUse Case
noIndex()noindex, followHide from search, follow links
noIndexNoFollow()noindex, nofollowHide completely from search
{ noarchive: true }noarchivePrevent cached versions
{ nosnippet: true }nosnippetNo text snippet in results
{ noimageindex: true }noimageindexDon't index images
{ maxSnippet: 150 }max-snippet:150Limit snippet length
{ maxImagePreview: "large" }max-image-preview:largeControl image preview size

Advanced: Custom Robots Config

Fine-grained robots controlTypeScript
import { mergeSEOConfig, noIndexNoFollow } from "react-ssr-seo";

// Option 1: Use the noIndexNoFollow helper
const loginPage = mergeSEOConfig(siteConfig, {
  title: "Login",
  robots: noIndexNoFollow(),
});
// Renders: <meta name="robots" content="noindex, nofollow" />

// Option 2: Fine-grained control
const archivePage = mergeSEOConfig(siteConfig, {
  title: "Archive",
  robots: {
    index: true,
    follow: true,
    noarchive: true,
    maxSnippet: 200,
    maxImagePreview: "standard",
  },
});
// Renders: <meta name="robots" content="index, follow, noarchive,
//           max-snippet:200, max-image-preview:standard" />
VIEW

Right-click → View Page Source to see the <meta name="robots" content="noindex, follow"> tag in the actual HTML of this page.