Joomla 1.6 – How to remove meta name=”generator” content=”Joomla! 1.6 – Open Source Content Management”

by Elaine on July 26, 2011

Joomla 1.6 Help – View Page Source is a good way to see the html or php code used to generate the page you are on.  After viewing the page source of a particular website I found that it disclosed that it was running on Joomla and the version.    This is a security concern as a webmaster because you want to reveal less about the platform you are using.    Again this does not totally remove the identity of the cms you are using, but it helps a little towards security of your Joomla website.

How to see the problem:

  • Go to your Joomla 1.6 website frontend
  • Right click, and view source
  • If you search in the code you will find:

<meta name=”generator” content=”Joomla! 1.6 – Open Source Content Management”/>

There are 2 ways to remove this meta generator tag:

1.  Install a Joomla Plugin named ‘Set Generator Tag’

2.  Editing your default site template file.

Below I will show you how to edit your index.php file to remove the meta generator tag (Option 2):

  • Login to your FTP Manager or File Manager
  • Goto and edit your default site template index.php file.
  • For example:

/templates/Beez_20/index.php

  • the first block of code should be <?php  and closed off a couple lines down with    ?>
  • Before the closing tag ?> add in the following code so it looks like below:

// Remove the generator meta tag
$this->setGenerator(null);
?>

  • Save the index.php file.

Now if View the source code of your frontend you will see that the meta tag generator field is now blank:

<meta name=”generator” content=”” />

Now you must do the same to these following files:

  • component.php
  • error.php
  • offline.php

Thanks,

Elaine

 Joomla 1.6   How to remove  meta name=generator content=Joomla! 1.6   Open Source Content Management

Elaine

Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

{ 4 comments… read them below or add one }

ion July 31, 2011 at 11:06 am

There is a problem – if there are new updates it;s a chance that the index.php from the template to be overwritten, and you will need to modify the new file;
If a good designer look into the source code will know witch is the platform from the components installed (or the name of the template used).

Reply

shaizty August 24, 2011 at 9:38 pm

Are u could use this line:

setGenerator(‘Place your test here’); ?>

Place it above your head section. And u r done!

Reply

Yorum December 7, 2011 at 6:36 pm

Hi,
Joomla 1.7 meta generator tag change/remove

Remove for;
Open this file.
libraries/joomla/document/html/renderer/head.php
Line 91:
$buffer .= $tab.’getGenerator()).'” />’.$lnEnd;
Change this;
// $buffer .= $tab.’getGenerator()).'” />’.$lnEnd;

CHANGE FOR;
Open this file.
libraries/joomla/document/html/renderer/head.php
Line 91:
$buffer .= $tab.”.$lnEnd;

EXM.
$buffer .= $tab.”.$lnEnd;

All templates changed…

Reply

Yorum December 7, 2011 at 6:40 pm

Does not seem to doing a full review. all 91 the line. Changeable, it there.

Line 91.
content=”‘Your Word Here.'”

Reply

Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: