HomeE-mail

Ka of Isis: The world does not need to know that my web page was created with Joomla!

Get rid of the Joomla! generator meta tag

14 February, 2011 | Filed under “Joomla!

Joomla! is open source and free for all, and we use it because of this or because somebody has handed over to us a site built on the foundations of this content management system. Its programmers are proud of their achievements and rightly so. They even leave small traces behind to remind us of the fact that this or that site was created with Joomla!. This is why you see the following piece of code in the head section of many web pages:

<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />

Out of respect for the open source community one should maybe leave the trace untouched. Morally. Ethically. I do not know. But my fingers itch when I see that meta tag and I want to remove it. Sod off, itch!

Open the following document in the Joomla! directive:

/libraries/joomla/document/html/renderer/head.php

Search for “generator” (without the quotes) to find the following line:

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

Comment out that line to read:

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

Save the file.

Voilà! The generator meta tag is gone from the HTML source code.

Now, prepare for the hordes of programmers riding you down.

  Leave a comment