Tame the robots crawling and indexing your Nuxt site with ease.
npm install @nuxtjs/robots[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
Nuxt Robots is a module for configuring the robots crawling your site with minimal config and best practice defaults.
The core feature of the module is:
- Telling crawlers which paths they can and cannot access using a robots.txt file.
- Telling search engine crawlers what they can show in search results from your site using a X-Robots-Tag HTTP header.
New to robots or SEO? Check out the Controlling Web Crawlers guide to learn more about why you might
need these features.
Made possible by my Sponsor Program š Follow me @harlan_zw š¦ ⢠Join Discord for help |
- š¤ Merge in your existing robots.txt or programmatically create a new one
- šæ Automatic X-Robots-Tag header and meta tag
- šµļø Bot detection with optional fingerprinting
- š Disables non-production environments from being indexed
- š¤ Control AI crawlers using the Content-Signal and Content-Usage directives
š” Using Nuxt 2? Please use the v3.x tag.
Install @nuxtjs/robots dependency to your project:
``bash``
npx nuxi@latest module add robots
š” Need a complete SEO solution for Nuxt? Check out Nuxt SEO.
š Read the full documentation for more information.
Licensed under the MIT license.
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/robots/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@nuxtjs/robots
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/robots.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/robots
[license-src]: https://img.shields.io/github/license/nuxt-modules/robots.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://github.com/nuxt-modules/robots/blob/main/LICENSE.md
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt
[nuxt-href]: https://nuxt.com