remove <meta name=

Discussion regarding Joomla! security issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Smile
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 158
Joined: Sun Oct 09, 2005 7:45 pm

remove <meta name=

Post by Smile » Thu Aug 16, 2007 10:17 pm

I want to remove for security reasons:

trgraglia
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Sat Jan 27, 2007 8:13 am
Contact:

Re: remove

Post by trgraglia » Tue Aug 21, 2007 4:41 pm

You'll find it in /includes/frontend.php

1.0.12 line 195

comment it out with "//"

User avatar
Chris
Joomla! Guru
Joomla! Guru
Posts: 812
Joined: Sat Aug 20, 2005 3:58 am
Location: Australia
Contact:

Re: remove

Post by Chris » Wed Aug 22, 2007 5:48 am

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
There is no failure until you give up.

Chris

StarShaper
Joomla! Explorer
Joomla! Explorer
Posts: 347
Joined: Wed Sep 27, 2006 11:55 pm

Re: remove

Post by StarShaper » Wed Aug 22, 2007 9:18 am

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

Smile
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 158
Joined: Sun Oct 09, 2005 7:45 pm

Re: remove

Post by Smile » Sat Aug 25, 2007 12:55 pm

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.

leolll
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Sep 10, 2006 11:52 pm

Re: remove

Post by leolll » Thu Sep 06, 2007 7:48 pm

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.

firstprotocol
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Wed Mar 21, 2007 9:57 am

Re: remove

Post by firstprotocol » Wed Nov 07, 2007 8:15 pm

I still cant locate it doesnt seem to be in that file in RC3

roady89
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Oct 30, 2007 1:01 am

Re: remove

Post by roady89 » Sun Nov 25, 2007 11:53 pm

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.

amphetax
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Wed Jun 11, 2008 5:46 pm

Re: remove <meta name=

Post by amphetax » Mon Jun 16, 2008 6:04 pm

bump. :)

what about Joomla 1.0.15 ?

alfanan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Nov 02, 2008 6:59 am

Re: remove <meta name=

Post by alfanan » Sat Nov 08, 2008 11:32 am


amphetax
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Wed Jun 11, 2008 5:46 pm

Re: remove <meta name=

Post by amphetax » Sun Nov 30, 2008 11:14 am

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...

User avatar
elmasry
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Sep 14, 2007 2:29 pm
Contact:

Re: remove <meta name=

Post by elmasry » Thu Jan 22, 2009 3:23 pm

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;
http://www.Querier.net
Want to be heard? Get Interviewed now through email !

flatsilver
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 141
Joined: Wed Feb 11, 2009 3:38 am

Re: remove <meta name=

Post by flatsilver » Mon Feb 23, 2009 9:19 pm

/libraries/joomla/document/document.php

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

rmd
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 233
Joined: Sat Feb 18, 2006 3:31 pm

Re: remove <meta name=

Post by rmd » Thu Jul 16, 2009 12:34 pm

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.

xalvinx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Dec 31, 2009 5:59 am

Re: remove <meta name=

Post by xalvinx » Thu Dec 31, 2009 6:04 am

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

xalvinx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Dec 31, 2009 5:59 am

Re: remove <meta name=

Post by xalvinx » Sun Jan 10, 2010 3:43 am

open " includes/joomla/document/document.php "
in line between 80-90 find text var $_generator = 'Joomla 1.5 ! Open Source Content Management.';

change it !

fpapleux
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat May 05, 2007 3:04 am

Re: remove <meta name=

Post by fpapleux » Mon Jan 25, 2010 4:43 am

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

User avatar
costicanu
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Jan 12, 2009 9:05 pm
Location: Ploiesti, Romania
Contact:

Re: remove <meta name=

Post by costicanu » Tue Sep 20, 2011 7:28 am

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!

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3507
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: remove <meta name=

Post by ribo » Wed Nov 07, 2012 10:09 pm

it s better to use a plugin for this so you don t modify every update you make
chat room spontes : http://www.spontes.com


Locked

Return to “Security - 1.0.x”