A common feature found in most security plugins is the ability to remove the WordPress Generator Meta Tag. This looks like the following:
<meta name=”generator” content=”WordPress 4.9.1” />
The above tag offers no value in terms of search engine optimization (SEO). The tag tells you what content management system (CMS) the website was built with. This is a very common practice with many platforms, including Drupal (another popular CMS). The tag is used to tell other developers what technology the website was built with. However, there are many other useful ways to determine if a website is using WordPress.
- HTML Tags,
- CSS Rules
- File Structure
- Style.CSS and much much more.
WordPress websites can usually be identified by looking at them. Due to this, the generator tag does not serve much purpose. This is because it is usually obvious that the website was built with WordPress.
Does Removing the WordPress Generator Meta Tag Provide Any Benefit?
This is an iffy question. Many security plugins seem to swear by it and it makes sense if you are looking to stop automated bots. For example, if a bot was scanning websites looking for an outdated version of WordPress, they can find this with an outdated form of the generator tag. This happens with older forms of the tags from let’s say WordPress 4.1. The bots can expose vulnerabilities in these outdated forms of WordPress and then potentially hack your website.
Other Ways to Find Out What WordPress Version A Website Is
However, there are other ways to tell the WordPress version of a website just by looking at it. For example, to find out what version of WordPress a website is using, look at the query strings. The query string is the bolded part in the following script.
CSS and JS files often change depending upon which version of WordPress a website is using. I have provided an example of a JS emoji script that changes when I update WordPress.
I went ahead and bolded the version number of the script. This is a bad versioning method. This is because it implies those files are only updated with a WordPress update. (But for many WordPress plugins, that is not the case.)
Does Removing The WordPress Generator Meta Tag Make Your Site More Secure?
No, unless you are working against a very unsophisticated bot that is just crawling through the web. To keep your website secure, you should focus on keeping your website up to date and locked down through other techniques. Other techniques can be consulted on through the codex or by contacting a WordPress developer, such as myself.
How to Remove the Tag?
The process to remove the tag is simple. Simply add the following piece of code to your functions.php file (of a child theme) or a site-specific plugin and this will remove the tag completely.