Detectable CMS / visible version
Your website reveals an outdated WordPress version. Attackers specifically look for sites like this.
More important than hiding: keep the system and extensions up to date (enable automatic updates).
server_tokens in the http { … } block, the other lines in the server block.
server_tokens off;
fastcgi_hide_header X-Powered-By;
proxy_hide_header X-Powered-By;
ServerTokens only works in the server configuration, not in .htaccess. Additionally in php.ini: expose_php = Off
# httpd.conf / apache2.conf
ServerTokens Prod
ServerSignature Off
# .htaccess
<IfModule mod_headers.c>
Header unset X-Powered-By
</IfModule>
In the web.config in the website's root directory, inside <configuration>.
<system.webServer>
<security>
<requestFiltering removeServerHeader="true" />
</security>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
In the functions.php of your child theme or in a small custom plugin. Configuring the web server (nginx/Apache tab) is better if you have access.
remove_action('wp_head', 'wp_generator');
add_filter('the_generator', '__return_empty_string');
Setting in the Cloudflare dashboard, no code needed.
Cloudflare dashboard → musterbau-gmbh.de → Rules → Transform Rules → “Modify Response Header” → create a rule for all requests
Remove: X-Powered-By
Technical details for your IT team (1 finding)
-
High WordPress 6.1 visible from outside – version with known security vulnerabilitiesRecommendation: Update WordPress and all plugins and hide the version number.<meta name="generator" content="WordPress 6.1">