Description
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.
Installation
- Upload
remove-version-info.php
to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- 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.
- Optional: You can check your security headers using developer tools in your browser to verify that headers like
Content-Security-Policy
andX-Content-Type-Options
are being set.
FAQ
-
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.
Contributors & Developers
“Remove Version Info” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Remove Version Info” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
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.