Loading...
JoomlaJoomla 1.6Joomla 1.7Joomla Setup

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

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

4 comments
  1. ion

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

  2. Yorum

    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…

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload