Page 1 of 1

remove <meta name=

Posted: Thu Aug 16, 2007 10:17 pm
by Smile
I want to remove for security reasons:

Re: remove
Posted: Tue Aug 21, 2007 4:41 pm
by trgraglia
You'll find it in /includes/frontend.php

1.0.12 line 195

comment it out with "//"


Re: remove
Posted: Wed Aug 22, 2007 5:48 am
by Chris
trgraglia wrote: You'll find it in /includes/frontend.php

1.0.12 line 195

comment it out with "//"
Sorry, this is the Joomla 1.5 forum and there is no /includes/frontend.php


Re: remove
Posted: Wed Aug 22, 2007 9:18 am
by StarShaper
Smile wrote: I want to remove for security reasons:
Why would you like to do that?  :)

You can find the generator in line 69 in file libraries\joomla\document\html\renderer\head.php


Re: remove
Posted: Sat Aug 25, 2007 12:55 pm
by Smile
StarShaper wrote:
Smile wrote: I want to remove for security reasons:
Why would you like to do that?  :)

You can find the generator in line 69 in file libraries\joomla\document\html\renderer\head.php
As I said I would like to remove it for security reasons that everyone who views source would not see that joomla is being used.


Re: remove
Posted: Thu Sep 06, 2007 7:48 pm
by leolll
I think including the generator tag is fine for bloggers, but not for corporate sites.  A potential attacker can use these details
to narrow his attack window and focus his attacks to the known platform.


Re: remove
Posted: Wed Nov 07, 2007 8:15 pm
by firstprotocol
I still cant locate it doesnt seem to be in that file in RC3


Re: remove
Posted: Sun Nov 25, 2007 11:53 pm
by roady89
Find in /libraries/joomla/document/html/renderer/head.php

Code: Select all

$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
Remove it.

YEA! My first post.


Re: remove <meta name=

Posted: Mon Jun 16, 2008 6:04 pm
by amphetax
bump. :)

what about Joomla 1.0.15 ?

Re: remove <meta name=

Posted: Sat Nov 08, 2008 11:32 am
by alfanan

Re: remove <meta name=

Posted: Sun Nov 30, 2008 11:14 am
by amphetax
no, it hasn't :)

i would really like to know how to remove that meta in 1.0.15. Thanks in advanced.

Sorry for bringing up an old topic...

Re: remove <meta name=

Posted: Thu Jan 22, 2009 3:23 pm
by elmasry
edit:
/libraries/joomla/document/html/renderer/head.php

you will want to find the following code (~line 167):
$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

you can turn it off by simply commenting the line with // at the beginning:
//$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

Re: remove <meta name=

Posted: Mon Feb 23, 2009 9:19 pm
by flatsilver
/libraries/joomla/document/document.php

i also found it here in my template.
search for META NAME
and look below
JOOMLA 1.5 TEMP

Re: remove <meta name=

Posted: Thu Jul 16, 2009 12:34 pm
by rmd
I know this is an old thread, but I am posting this link here in case anyone finds it looking for an answer. This is for J!1.5:

http://www.theartofjoomla.com/home/19-d ... r-tag.html

Or just do a search in your favorite search engine, and you will lots of the same or similar answers on lots of different web sites.

The beauty of adding this to your template is that the core files are left alone, so nothing to remember to change when you do a J! update.

Re: remove <meta name=

Posted: Thu Dec 31, 2009 6:04 am
by xalvinx
open " includes/joomla/document/document.php "
in line between 80-90 find text var $_generator = 'Joomla 1.5 ! Open Source Content Management.';

change it !

For JOOMLA 1.5

Re: remove <meta name=

Posted: Sun Jan 10, 2010 3:43 am
by xalvinx
open " includes/joomla/document/document.php "
in line between 80-90 find text var $_generator = 'Joomla 1.5 ! Open Source Content Management.';

change it !

Re: remove <meta name=

Posted: Mon Jan 25, 2010 4:43 am
by fpapleux
In Joomla 1.0.15, the code is located in /includes/frontend.php line 195. It says:"
$mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);"

Comment out, or adjust to your liking...

I was looking for that myself. I have a feeling I really really need to consider J1.5...

Fabien Papleux
@itilgeek

Re: remove <meta name=

Posted: Tue Sep 20, 2011 7:28 am
by costicanu
Even if it's an old subject, it is still searched. I saw few plugins in joomla extensions site that removes that meta tag and even a Joomla header variable that is created when using Gzip.

Removing only the generator meta tag by placing $this->setGenerator(null); at the top of the template file, works!

Re: remove <meta name=

Posted: Wed Nov 07, 2012 10:09 pm
by ribo
it s better to use a plugin for this so you don t modify every update you make