How to Remove Joomla Meta Generator Tag

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.

5 Replies to “How to Remove Joomla Meta Generator Tag”

  1. by BellaBlue 8 years ago

    it did not work actually shut the site off 3. or higher version

    1. by Jason Noel 8 years ago

      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.

  2. by Nonito 8 years ago

    It works in joomla 3.8

  3. by Jumbo 5 years ago

    Sweet ..works on 3.9.19

  4. by treddinwater 5 years ago

    works 3.9.8 thanks

Leave a Reply

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

This field is required.

This field is required.