Re: [development] Remove Meta Tag Generator
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 2012/3/5 Richard Burford <lists@freestylesystems.co.uk>:
You could make a small module that does this with a settings form, a conf variable, and (as described in the link you posted) using hook_html_head_alter() to unset or otherwise alter the generator element.
But, it begs the question - why do you even care about this?
On 5 Mar 2012, at 09:49, webmaster wrote:
Hi, I noticed that by default this tag is written: <meta name="Generator" content="Drupal 7 (http://drupal.org)" />
I'm perplexed about that and I discover that someone else is sharing my point of view: http://drupal.org/node/982034
Do you think it would be possibile to add an option in the admin panel to switch off this feature?
Regards, Domenico
On Mon, Mar 5, 2012 at 5:03 AM, webmaster <fairsayan@gmail.com> 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
It isn't a work around to install or write a module that adjusts the defaults. It is the way it works. You can also use project/metatag to insert per node meta tags and remove or modify the generator tag. As Richard said, "why do you even care about this?" In other words, why do you want to hide the fact that your content is being generated by Drupal? -- Earnie -- https://sites.google.com/site/earnieboyd
I'm sure there was a good reason why it was added, and so there will be a closed issue in the queue somewhere. Find it, then reference it in your new feature issue to remove it. Such a discussion belongs in the core issue queues, not here on the mailing list. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: webmaster
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
On 5 Mar 2012 11h03 CET, fairsayan@gmail.com 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_head... [2] http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header
participants (4)
-
António P. P. Almeida -
Earnie Boyd -
Ms. Nancy Wichmann -
webmaster