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 Comments to “ How to Remove Joomla Meta Generator Tag”

  1. BellaBlue says :Reply

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

    1. Jason Noel says :Reply

      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. Nonito says :Reply

    It works in joomla 3.8

  3. Jumbo says :Reply

    Sweet ..works on 3.9.19

  4. treddinwater says :Reply

    works 3.9.8 thanks

What are your thoughts? Write a comment below!

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