Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-no-index


A simple plugin that keeps your website from being indexed by search engine.

How to use

  1. Install using either npm or yarn:
yarn add gatsby-plugin-no-index

or

npm install gatsby-plugin-no-index
  1. Add to gatsby-config.js
module.exports = {
  plugins: [
    `gatsby-plugin-no-index`,
  ]
}

Further readings

https://moz.com/learn/seo/robots-meta-directives https://developers.google.com/search/reference/robots_meta_tag

© 2023 Gatsby, Inc.