Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Overview
The Remove HTTP headers module removes configured HTTP headers from the response. Also removes <meta name="Generator" content="Drupal 8 (https://www.drupal.org)"> from the <head> tag if the X-Generator HTTP header is configured to be removed. By default the X-Generator, X-Drupal-Dynamic-Cache and X-Drupal-Cache HTTP headers are configured to be removed.
Motivation
The initial idea of this module is to obfuscate that your website is running on Drupal. However this module can of course be used for other purposes as well.
Disclaimer
Be aware that there are also other ways than HTTP headers to find out if Drupal is used by a website. Obfuscation is not a replacement for a secure website. Make sure you always have the latest security updates installed and are writing secure code in your custom modules and themes.
Features
- Remove configured HTTP headers from responses.
<meta name="Generator" content="Drupal 8 (https://www.drupal.org)">from the<head>tag if the X-Generator HTTP header is configured to be removed.
Installation
Install as you would normally install a contributed Drupal module. Visit:
https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod...
for further information.
Configuraton
- Configure the HTTP headers that should be removed on the settings page (/admin/config/system/remove-http-headers) or directly in the remove_http_headers.settings.yml configuration file.
- Use the following format:
headers_to_remove: - 'X-Generator' - 'X-Drupal-Dynamic-Cache' - 'X-Drupal-Cache'
- Use the following format:
Requirements
- This module requires Drupal 8.6 or above.
- No additional modules are needed.
Project information
- Module categories: Security
6,998 sites report using this module
- Created by orlando.thoeny on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
D10 compatibility release
Development version: 2.0.x-dev updated 5 Jan 2023 at 21:59 UTC
Development version: 8.x-1.x-dev updated 24 Jun 2021 at 11:53 UTC
- Testing result: PHP 7.3 & MySQL 8, D9.2 2 pass all results











