Why remove the Joomla meta tag generator?
All Joomla websites come standard with the following meta tag:
<meta name=”generator” content=”Joomla! – Open Source Content Management” />
Removing the Joomla meta generator tag is one crucial aspect of securing your website. The Joomla Meta Generator tag tells hackers that your website is a Joomla website. Then, once they figure out your Joomla version, they know what vulnerabilities your site has. Thus the need to remove all traces that your website is indeed a Joomla website.
To remove the Joomla Meta generator tag, do this:
- Go to your template’s index.php file (/public_html/templates/index.php)
- Enter the following code at the top:
<?php
// remove the joomla meta generator
$this->setGenerator(null);
?>
Remember, that you will need to add this code to not only the main index.php file, but to the offline.php and error.php files as well.
This meta tag update works for all Joomla 2.5.x and Joomla 3.8.x.
If you would like help with Joomla web design, please let us know by giving us a call (970) 639-0777.
it did not work actually shut the site off 3. or higher version
It currently works on joomla 2.5.x – 3.7.4. You can either insert it after the defined(‘_JEXEC’) or die; code and remove the php tags or outside at the top. Keep in mind that if you are using an offline version of your template, that you will need to add this code to that php file as well.
It works in joomla 3.8
Sweet ..works on 3.9.19
works 3.9.8 thanks