Title: Remove Version Info
Author: Ashkar
Published: <strong>2015 年 7 月 3 日</strong>
Last modified: 2025 年 3 月 27 日

---

搜索插件

![](https://ps.w.org/remove-version-info/assets/banner-772x250.png?rev=1193086)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/remove-version-info_a3b8c0.svg)

# Remove Version Info

 作者：[Ashkar](https://profiles.wordpress.org/shinorex/)

[下载](https://downloads.wordpress.org/plugin/remove-version-info.1.2.zip)

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

 [支持](https://wordpress.org/support/plugin/remove-version-info/)

## 描述

Remove the version from your WordPress website completely, increasing security and
thwarting potential hacks by hiding WordPress version information from the source
code.

This plugin:
 – Removes the WordPress version number from the HTML meta generator
tag. – Removes version query strings (`?ver=x.x.x`) from CSS and JavaScript files.–
Hides the WordPress version from RSS feed generator tags. – Adds security headers
to prevent attacks and improve site security.

## 屏幕截图

 * [[
 * screenshot-1.png

## 安装

 1. Upload `remove-version-info.php` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to your homepage, CTRL+U to view the source, and confirm that the WordPress 
    version number has been removed from:
 4.  * Meta generator tag.
     * Query strings in CSS and JS files.
 5. Optional: You can check your security headers using developer tools in your browser
    to verify that headers like `Content-Security-Policy` and `X-Content-Type-Options`
    are being set.

## 常见问题

### Why should I use this plugin when I can just put the code into my functions.php file?

You can do that, but when you update or change your theme, it will be removed (along
with any other modifications done to the `functions.php` file).

### Will this plugin persist even if I change or update my theme?

Yes. This plugin works independently of your theme and will continue to function
regardless of theme changes.

### What happens if I deactivate or uninstall this plugin?

If you deactivate or uninstall this plugin, the version information will no longer
be removed.

### What security headers does this plugin add?

The plugin adds the following headers:
 – **Content-Security-Policy**: Helps prevent
XSS attacks by specifying allowed sources for content. – **X-Content-Type-Options**:
Prevents browsers from interpreting files as a different MIME type. – **X-UA-Compatible**:
Forces Internet Explorer to use the latest rendering engine.

## 评价

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

### 󠀁[Good job](https://wordpress.org/support/topic/good-job-704/)󠁿

 [aso824](https://profiles.wordpress.org/aso824/) 2017 年 5 月 21 日

This plugin is ultra simple and does his job.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/remove-version-info/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Ashkar ](https://profiles.wordpress.org/shinorex/)

[帮助将「Remove Version Info」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/remove-version-info)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2

 * Combined filters for version removal to improve code efficiency.
 * Added security headers like Content-Security-Policy and X-Content-Type-Options
   for enhanced security.
 * Added localization support for plugin translations.
 * Improved code comments for better maintainability and readability.

#### 1.1

 * Initial release.

## 额外信息

 *  版本 **1.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/remove-version-info/)
 * 标签
 * [delete](https://cn.wordpress.org/plugins/tags/delete/)[hide](https://cn.wordpress.org/plugins/tags/hide/)
   [hide version](https://cn.wordpress.org/plugins/tags/hide-version/)[Remove Version](https://cn.wordpress.org/plugins/tags/remove-version/)
   [wordpress version](https://cn.wordpress.org/plugins/tags/wordpress-version/)
 *  [高级视图](https://cn.wordpress.org/plugins/remove-version-info/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/remove-version-info/reviews/#new-post)

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

## 贡献者

 *   [ Ashkar ](https://profiles.wordpress.org/shinorex/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/remove-version-info/)