# @nuxtjs/robots

> Tame the robots crawling and indexing your Nuxt site with ease.

Latest version **7.1.0** (published 2026-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxtjs/robots
pnpm add @nuxtjs/robots
yarn add @nuxtjs/robots
bun add @nuxtjs/robots
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 7.1.0 |
| Published | 2026-11-23 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.22.3 \|\| ^24.15.0 \|\| >=26.0.0 |
| Dependencies | 8 |
| Unpacked size | 244.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 529 |
| Author | Harlan Wilton |
| Maintainers | harlan_zw |

## Links

- npm: https://www.npmjs.com/package/@nuxtjs/robots
- Repository: https://github.com/nuxt-modules/robots
- Homepage: https://nuxtseo.com/robots
- Issues: https://github.com/nuxt-modules/robots/issues
- Funding: https://github.com/sponsors/harlan-zw
- npm.io page: https://npm.io/package/@nuxtjs/robots

## Dependencies (8)

- [ufo](https://npm.io/package/ufo.md) ^1.6.4
- [defu](https://npm.io/package/defu.md) ^6.1.7
- [consola](https://npm.io/package/consola.md) ^3.4.2
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^4.6.4
- [@vueuse/core](https://npm.io/package/@vueuse/core.md) ^15.0.0
- [nuxtseo-shared](https://npm.io/package/nuxtseo-shared.md) ^6.0.4
- [nuxt-site-config](https://npm.io/package/nuxt-site-config.md) ^5.0.4
- [@fingerprintjs/botd](https://npm.io/package/@fingerprintjs/botd.md) ^2.0.0

## Recent versions

- 7.1.0 (latest) — 2026-11-23
- 6.0.0-beta.5 (beta) — 2026-03-24
- 4.0.0-rc.23 (rc) — 2024-07-15
- 3.0.0-2 (prerelease) — 2022-10-31
- 7.0.2 — 2026-10-13
- 7.0.1 — 2026-10-12
- 7.0.0 — 2026-10-12
- 6.2.4 — 2026-09-29
- 6.2.3 — 2026-09-14
- 6.2.2 — 2026-09-11
- 6.2.1 — 2026-09-10
- 6.2.0 — 2026-08-20
- 6.1.5 — 2026-08-18
- 6.1.4 — 2026-08-08
- 6.1.3 — 2026-07-19
- … 79 more at https://npm.io/package/@nuxtjs/robots/versions

## README

<h1><a href="https://nuxtseo.com"><img src=".github/assets/icon.svg" width="40" height="40" alt="Nuxt SEO" align="top"></a> @nuxtjs/robots</h1>

[![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]
[![Skill repository on skilld.dev][skilld-src]][skilld-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](https://nuxtseo.com/learn/controlling-crawlers) which paths they can and cannot access using a [robots.txt](https://nuxtseo.com/learn/controlling-crawlers/robots-txt) file.
- Telling [search engine crawlers](https://developers.google.com/search/docs/crawling-indexing/googlebot) what they can show in search results from your site using a `<meta name="robots" content="index">` `X-Robots-Tag` HTTP header.

New to robots or SEO? Check out the [Controlling Web Crawlers](https://nuxtseo.com/learn/controlling-crawlers) guide to learn more about why you might
need these features.

<p align="center">
<table>
<tbody>
<td align="center">
<sub>Made possible by my <a href="https://github.com/sponsors/harlan-zw">Sponsor Program 💖</a><br> Follow me <a href="https://twitter.com/harlan_zw">@harlan_zw</a> 🐦 • Join <a href="https://discord.gg/275MBUBvgP">Discord</a> for help</sub><br>
</td>
</tbody>
</table>
</p>

## Features

- 🤖 Merge in your existing robots.txt or programmatically create a new one
- 🗿 Automatic `X-Robots-Tag` header and `<meta name="robots" ...>` meta tag
- 🕵️ [Bot detection](https://nuxtseo.com/docs/robots/guides/bot-detection) with optional fingerprinting
- 🔒 Disables non-production environments from being indexed
- 🤠 Control AI crawlers using the `Content-Signal` and `Content-Usage` directives

## Installation

💡 Using Nuxt 2? Please use the [v3.x](https://github.com/nuxt-modules/robots/tree/v3.x) tag.

Install `@nuxtjs/robots` dependency to your project:

```bash
npx nuxt module add robots
```

> [!TIP]
> Using an AI agent? Get the @nuxtjs/robots Skill on [skilld.dev/gh/nuxt-modules/robots](https://skilld.dev/gh/nuxt-modules/robots).

💡 Configured your robots.txt? Verify what crawlers and AI bots can access with the free [Robots.txt Validator](https://nuxtseo.com/tools/robots-txt-validator), or monitor crawl & indexing status with [Nuxt SEO Pro](https://nuxtseo.com/pro).

## Documentation

[📖 Read the full documentation](https://nuxtseo.com/robots) for more information.

## Demos

- [Default - StackBlitz](https://stackblitz.com/edit/nuxt-starter-zycxux?file=public%2F_robots.txt)

## Sponsors

<p align="center">
  <a href="https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.svg">
    <img src='https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.svg' alt='sponsors'/>
  </a>
</p>

## License

Licensed under the [MIT license](https://github.com/nuxt-modules/robots/blob/main/LICENSE.md).

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/robots/latest.svg?style=flat&labelColor=16152b&color=00a63e
[npm-version-href]: https://npmjs.com/package/@nuxtjs/robots

[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/robots.svg?style=flat&labelColor=16152b&color=00a63e
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/robots

[license-src]: https://img.shields.io/github/license/nuxt-modules/robots.svg?style=flat&labelColor=16152b&color=00a63e
[license-href]: https://github.com/nuxt-modules/robots/blob/main/LICENSE.md

[nuxt-src]: https://img.shields.io/badge/Nuxt-16152b?logo=nuxt&style=flat
[nuxt-href]: https://nuxt.com

[skilld-src]: https://skilld.dev/b/nuxt-modules/robots?style=flat&labelColor=16152b&color=00a63e&logoColor=ffffff
[skilld-href]: https://skilld.dev/gh/nuxt-modules/robots

---
_Source: https://npm.io/package/@nuxtjs/robots · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
