Re: Remove Meta Tag Generator

António P. P. Almeida <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <877gyq25wz.wl%[email protected]>
On 5 Mar 2012 11h03 CET, [email protected] wrote:

> Hi Richard, already exists and I'm using it:
> http://drupal.org/project/remove_generator You got my point: I'd
> like to have something in the core without having to install
> workarounds Thanks, Domenico

Better yet without any module. Do it at the server level. Here's for
nginx, both when proxying to FCGI or Apache:

fastcgi_hide_header X-Generator; # see [1]

or

proxy_hide_header X-Generator; # see [2]

Probably you can do the same with any other server. It's faster and
simpler to mantain than using a contrib module.

And while you are at it hide also the X-Drupal-Cache header.

--- appa

[1] http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_hide_header
[2] http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.