Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Feb 2019 at 12:24 UTC
Updated:
16 Nov 2025 at 09:27 UTC
Jump to comment: Most recent
X-Generator header provides a way to know whether a site is Drupal or not and version. While this is useful for search engine other auditing purposes, this could be used by attackers to target Drupal sites. There are modules(1) and blog posts/issues (link 1, link 2, link 3, link 4) to remove this header.
we could we have an option in core which allows to remove this header and we can have it on by default?
Discuss
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
vijaycs85Comment #3
vijaycs85Comment #4
vijaycs85Comment #6
edmonkey commentedJust posting this module, as is specific for this requirement/problem.
https://www.drupal.org/project/remove_http_headers
Comment #9
catchWe don't consider fingerprinting information a security issue usually, although this doesn't necessarily mean that it shouldn't be possible to switch off some of the headers Drupal adds.
Just adding to this issue that someone reported to security.drupal.org that the Drupal version is also discoverable via the installer. This was cleared to be in the public queue and this seems like an appropriate issue to mention on.
Comment #16
prudloff commentedI don't think we should push security by obfuscation.
However, I am wondering if this non-standard header is really useful. I googled it and I could not find any usage outside of Drupal.
Do we know if some clients are consuming it?
The header was added in #275092: Add fingerprinting META Generator and HTTP headers for Drupal.
(The generator meta tag is standard and contains the same information.)
Comment #17
gregglesIt's possible to make a header request that consumes significantly less bandwidth if someone were spidering for Drupal sites at scale. That said, since it's not standard this is not a reliable way to determine Drupal vs other systems.
Comment #18
prudloff commentedThis can indeed be used to find a list of Drupal websites: https://publicwww.com/websites/%22X-Generator%3A+Drupal%22/
Comment #19
prudloff commentedDo we have a way to deprecate ResponseGeneratorSubscriber? Or should we simply remove it?