Title: noindex SEO
Author: ROBOTSTXT.es
Published: <strong>2020 年 4 月 3 日</strong>
Last modified: 2026 年 8 月 17 日

---

搜索插件

![](https://ps.w.org/noindex-seo/assets/icon.svg?rev=2275289)

# noindex SEO

 作者：[ROBOTSTXT.es](https://profiles.wordpress.org/robotstxt/)

[下载](https://downloads.wordpress.org/plugin/noindex-seo.3.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/noindex-seo/#description)
 * [评价](https://cn.wordpress.org/plugins/noindex-seo/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/noindex-seo/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/noindex-seo/#developers)

 [支持](https://wordpress.org/support/plugin/noindex-seo/)

## 描述

Fine-grained control over how search engines index and display your WordPress content.
Apply 5 independent robots directives to 22 different page contexts with flexible
implementation methods.

**5 Robots Directives:**

 * **noindex**: Prevent search engines from indexing the page
 * **nofollow**: Prevent search engines from following links on the page
 * **noarchive**: Prevent search engines from showing cached versions
 * **nosnippet**: Prevent search engines from showing text snippets in results
 * **noimageindex**: Prevent search engines from indexing images on the page

**Implementation Methods:**

 * HTML Meta Tags: Traditional method, easy to verify in page source (default)
 * HTTP Headers: More robust, works with all content types including PDFs and images
 * Both: Maximum compatibility for all scenarios

**Control Levels:**

 * Global Settings: Apply directives to 22 different page contexts (posts, pages,
   archives, etc.)
 * Granular Control (Optional): Override global settings for individual posts, pages,
   and custom post types via meta boxes in the editor

**Perfect for:**

 * Blocking indexing of attachment pages while allowing link following
 * Preventing duplicate content issues with flexible directive combinations
 * Controlling archive page indexing with granular control
 * Managing pagination SEO with independent settings
 * Protecting private content from search engine caching
 * Preventing snippet display while still indexing content

**Main pages**

 * Front Page: Block the indexing of the site’s front page.
 * Home: Block the indexing of the site’s home page.

**Pages and Posts**

 * Page: Block the indexing of the site’s pages.
 * Privacy Policy: Block the indexing of the site’s privacy policy page.
 * Single: Block the indexing of a post on the site.
 * Singular: Block the indexing of a post or a page of the site.

**Taxonomies**

 * Category: Block the indexing of the site categories. The lists where the posts
   appear.
 * Tag: Block the indexing of the site’s tags. The lists where the posts appear.

**Dates**

 * Date: Block the indexing when any date-based archive page (i.e. a monthly, yearly,
   daily or time-based archive) of the site. The lists where the posts appear.
 * Day: Block the indexing when a daily archive of the site. The lists where the
   posts appear.
 * Month: Block the indexing when a monthly archive of the site. The lists where
   the posts appear.
 * Time: Block the indexing when an hourly, “minutely”, or “secondly” archive of
   the site. The lists where the posts appear.
 * Year: Block the indexing when a yearly archive of the site. The lists where the
   posts appear.

**Archives**

 * Archive: Block the indexing of any type of Archive page. Category, Tag, Author
   and Date based pages are all types of Archives. The lists where the posts appear.
 * Author: Block the indexing of the author’s page, where the author’s publications
   appear.
 * Post Type Archive: Block the indexing of any post type page.

**Pagination**

 * Pagination: Block the indexing of the pagination, i.e. all pages other than the
   main page of an archive.

**Search**

 * Search: Block the indexing of the internal search result pages.

**Attachments**

 * Attachment: Block the indexing of an attachment document to a post or page. An
   attachment is an image or other file uploaded through the post editor’s upload
   utility. Attachments can be displayed on their own “page” or template. This will
   not cause the indexing of the image or file to be blocked.

**Previews**

 * Customize Preview: Block the indexing when a content is being displayed in customize
   mode.
 * Preview: Block the indexing when a single post is being displayed in draft mode.

**Error Page**

 * Error 404: This will cause an error page to be blocked from being indexed. As
   it is an error page, it should not be indexed per se, but just in case.

Important note: if you have any doubt about any of the following items it is best
not to activate the option as you could lose results in the search engines.

### Using the plugin

#### REST API

The plugin exposes two read-only endpoints under `/wp-json/noindex-seo/v1/` so headless
consumers can read the configuration:

 * `GET /settings`: returns the consolidated settings array (contexts and directives
   plus config). Requires an authenticated user with the `manage_options` capability.
 * `GET /effective?post_id=123`: returns the list of active directives for a specific
   post, computed with the same precedence used on the front-end (per-post override,
   then per-post-type default, then the built-in context). Public only for published,
   non-password-protected posts; everything else requires `edit_post` capabilities.

On WordPress versions with XML sitemaps (5.5+), URLs that are noindexed are automatically
excluded from the core sitemaps.

### Compatibility

 * WordPress: 4.0 – 7.1
 * PHP: 5.6 – 8.5

### Compliance

This plugin adheres to the following security measures and review protocols for 
each version:

 * [WordPress Plugin Handbook](https://developer.wordpress.org/plugins/)
 * [WordPress Plugin Security](https://developer.wordpress.org/plugins/wordpress-org/plugin-security/)
 * [WordPress APIs Security](https://developer.wordpress.org/apis/security/)
 * [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards)
 * [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/)

### Privacy

 * This plugin does not collect any information about your site, your identity, 
   the plugins, themes or content the site has.

### Vulnerabilities

 * No vulnerabilities have been published up to version 3.1.3.

Found a security vulnerability? Please report it to us privately at the [noindex SEO GitHub repository](https://github.com/javiercasares/noindex-seo/security/advisories/new).

## 屏幕截图

[[

## 安装

#### Automatic download

Visit the plugin section in your WordPress, search for [noindex-seo]; download and
install the plugin.

#### Manual download

Extract the contents of the ZIP and upload the contents to the `/wp-content/plugins/
noindex-seo/` directory. Once uploaded, it will appear in your plugin list.

## 常见问题

### Does the noindex directive remove the URL from the XML sitemap?

Yes. On WordPress 5.5 or newer, any URL that receives a noindex directive from the
plugin is excluded from the core XML sitemaps (`/wp-sitemap.xml`), both through 
the global context settings and through the granular per-post / per-term overrides.

### What is the difference between the HTML meta tags and the HTTP headers implementation methods?

Both send the same robots directives to search engines. The meta tag method outputs
a `<meta name="robots">` tag in the HTML head and is easy to verify in the page 
source. The HTTP header method sends an `X-Robots-Tag` header, which also works 
for non-HTML content such as PDFs, images and feeds. The “Both” method sends the
two signals at the same time.

### Will I lose my settings when I uninstall the plugin?

No. By default all plugin data is preserved on uninstall. If you want a complete
cleanup, enable the “Delete all plugin data on uninstall” option in the settings
page before removing the plugin.

## 评价

![](https://secure.gravatar.com/avatar/e371a5ff70982d6817347632f03e88b34e534d4fd2e76a1f841db07c28178365?
s=60&d=retro&r=g)

### 󠀁[Wish I had this plugin 5 years ago!](https://wordpress.org/support/topic/wish-i-had-this-plugin-5-years-ago/)󠁿

 [Jason Robinson](https://profiles.wordpress.org/jsrobinson/) 2022 年 12 月 13 日

This plugin is a big time saver, is simple, and works like it should. It helps mitigate
search spam too!

![](https://secure.gravatar.com/avatar/6734871dc596c9347a42af0f884764c83cc8d65ae6cc324e999ba52de1651b25?
s=60&d=retro&r=g)

### 󠀁[Exactly what I was looking for!](https://wordpress.org/support/topic/exactly-what-i-was-looking-for-449/)󠁿

 [autoblogch](https://profiles.wordpress.org/autoblogch/) 2020 年 5 月 6 日

A simple tool to add noindex meta tags to some sections of the site without being
an overblown plugin. Thanks to the guys who made this plugin!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/noindex-seo/reviews/)

## 贡献者及开发者

「noindex SEO」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ROBOTSTXT.es ](https://profiles.wordpress.org/robotstxt/)
 *   [ Javier Casares ](https://profiles.wordpress.org/javiercasares/)

「noindex SEO」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/noindex-seo/contributors)
为本插件所做的贡献。

[帮助将「noindex SEO」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/noindex-seo)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/noindex-seo/)，查看[SVN仓库](https://plugins.svn.wordpress.org/noindex-seo/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/noindex-seo/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/noindex-seo/)。

## 更新日志

#### 3.1.3

Compatibility release: WordPress 4.0+ and PHP 5.6+ supported again (the classic `
<meta name="robots">` output covers WordPress versions without the `wp_robots` API,
and every newer-API integration degrades gracefully). Branding moved to robotstxt.
software.

#### 3.1.2

Audit-driven maintenance release: fixed the composer-audit gate in the preflight
script, un-nested the settings page forms, added `load_plugin_textdomain()` for 
the bundled translations, pinned all dev dependencies, wired up coverage measurement.

#### 3.1.1

Security: tightened the ACL on the REST endpoints. `/settings` now requires `manage_options`;`/
effective` is public only for published, non-password-protected posts and requires`
edit_post` for everything else.

#### Previous versions

If you want to see the full changelog, visit the [noindex SEO plugin page](https://www.robotstxt.software/plugins/noindex-seo/).

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://git.robotstxt.es/ROBOTSTXT/noindex-seo)

## 额外信息

 *  版本 **3.1.3**
 *  最后更新：**2 月前**
 *  活跃安装数量 **3,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Catalan](https://ca.wordpress.org/plugins/noindex-seo/) 、 [English (US)](https://wordpress.org/plugins/noindex-seo/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/noindex-seo/) 和 [Spanish (Spain)](https://es.wordpress.org/plugins/noindex-seo/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/noindex-seo)
 * 标签
 * [nofollow](https://cn.wordpress.org/plugins/tags/nofollow/)[noindex](https://cn.wordpress.org/plugins/tags/noindex/)
   [robots](https://cn.wordpress.org/plugins/tags/robots/)[seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/noindex-seo/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/noindex-seo/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/noindex-seo/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/noindex-seo/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/noindex-seo/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/noindex-seo/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/noindex-seo/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/noindex-seo/reviews/)

## 贡献者

 *   [ ROBOTSTXT.es ](https://profiles.wordpress.org/robotstxt/)
 *   [ Javier Casares ](https://profiles.wordpress.org/javiercasares/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 1

 [查看支持论坛](https://wordpress.org/support/plugin/noindex-seo/)