68 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2025-09-05 14:59:21 +08:00
<h1 align='center'>@nuxtjs/robots</h1>
<p align="center">
<a href='https://github.com/nuxt-modules/robots/actions/workflows/test.yml'>
</a>
<a href="https://www.npmjs.com/package/@nuxtjs/robots" target="__blank"><img src="https://img.shields.io/npm/v/@nuxtjs/robots?style=flat&colorA=002438&colorB=28CF8D" alt="NPM version"></a>
<a href="https://www.npmjs.com/package/@nuxtjs/robots" target="__blank"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@nuxtjs/robots?flat&colorA=002438&colorB=28CF8D"></a>
<a href="https://github.com/nuxt-modules/robots" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/nuxt-modules/robots?flat&colorA=002438&colorB=28CF8D"></a>
</p>
<p align="center">
Tame the robots crawling and indexing your Nuxt site with ease.
</p>
For `@nuxtjs/robots` v3.0 usage, please use the [v3.x](https://github.com/nuxt-modules/robots/tree/v3.x) tag.
<p align="center">
<table>
<tbody>
<td align="center">
<img width="800" height="0" /><br>
<i>Status:</i> <a href="https://github.com/nuxt-modules/robots/releases/tag/v4.0.0">v4.0 Merged with <a href="https://github.com/nuxt-modules/robots/issues/116">Nuxt Simple Robots</a></a></b> <br>
<sup> Please report any issues 🐛</sup><br>
<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>
<img width="800" height="0" />
</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
- 🔄 Integrates with route rules and runtime hooks
- 🔒 Disables non-production environments from being indexed
- Solves common issues and best practice default config
## Installation
> For `@nuxtjs/robots` v3.0 usage, please use the [v3.x](https://github.com/nuxt-modules/robots/tree/v3.x) tag.
Install `@nuxtjs/robots` dependency to your project:
```bash
npx nuxi@latest module add robots
```
# 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'/>
</a>
</p>
## License
MIT License © 2022-PRESENT [Harlan Wilton](https://github.com/harlan-zw)