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:
    • Meta generator tag.
    • Query strings in CSS and JS files.
  4. 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.

使用者評論

2017 年 5 月 21 日
This plugin is ultra simple and does his job.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Remove Version Info〉的開發相關工作。

參與者

將〈Remove Version Info〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.