Home Smart and Fast How to remove Joomla meta name="generator"
How to remove Joomla meta name="generator" PDF Print E-mail
User Rating: / 7
PoorBest 

Remove Joomla meta generatorThis is one trick that many of us wanted to do apply to their Joomla websites.
At a first glance someone might say thats its not the best thing to do since it removes any credit to Joomla for helping creating a website but that same one could be convinced that is a good thing to do since Joomla is used by thousands website around the world making it an easy target for hackers and script kiddies.
If you want to be invisible from such "hackers" radars searching for Joomla websites suing meta generators then I suggest you to apply the following trick and remove any reference of Joomla in your homepage meta's.

This change could be applied either in Joomla source files or in your template files. We are going to follow the second solution and edit our template files since its possible that the next time you upgrade your Joomla website our changes will be overwritten from the new files that the upgrade may place.

*As always keep backups of any files you are about to edit.*

1. Download, open and edit your templates index.php or header.php file. We are looking for the <head> code part of the file. Some templates have that part inside their index.php while other have it inside other files such as header.php or wrap.php, it really depends on your template developer(it wouldnt be a bad idea to ask them first before searching for yourself).

2.
Once you find the <head> part press enter to create a new line and paste the following code if you want to remove completely the generator meta:

<?php
$this->setGenerator(null);
?>


or this if you just want to remove the Joomla part of the generator meta, you replace "whatever" with any comment of your choice:

<?php
$this->setGenerator("whatever");
?>


3.
Once done save your file and upload it back to your website

4.
Refresh your homepage a press CTRL+U in order to see the source code of your page, you probably wont see the Joomla meta generator any more.

5. Apply the same changes to the following files, if any, of your template:
- component.php
- error.php
- offline.php