Remove the generator meta tag from Joomla

Sometimes it’s good to keep the fact that you’re running a Joomla site secret. In particular, some hackers might search for the meta tag in your document header saying:
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />

This is easy to fix though, without having to hack the core Joomla code (as you should never do that should you?)

All you need to do is add the following line just after the call to insert the page header:

<jdoc:include type="head" />;
<?php $this->setGenerator('This site isn't written in Joomla - stop prying!'); ?>;

Leave a Reply

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