Home arrow Hacks arrow Template Trickery arrow How to remove the Joomla generator tag
joomla_commpow_sm.png JoomlaTips.org is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
 
How to remove the Joomla generator tag PDF Print E-mail
User Rating: / 2
PoorBest 


You use Joomla? Huh... Me too... Did you know, that by this alone you became a potential target for some bad guys out there?

Like it or not, there are some nerds wich "specialised" themselves in hacking and cracking Joomla sites.

What you can do about?

The part of your defence strategy should be to keep a low profile. No, not to remove yourself from search engine result pages, but hide the traces indicating that your site is built upon Joomla. The list of things you can do is pretty long, you may found some in this site too, as how to remove Joomla's copyright info .  Let's add anothe one to your toolbox: how to remove the

'<meta name="generator" content="Joomla! 1.* - Open Source Content Management" />'

metatag from the eyes of source code snoppers.

There are lots of tricks for it, most SEF components, as my preferred sh404SEF offers this as an option. There are also other SEF enhancements out there offering the same as main purpose or sideeffect. The one I like most is for Joomla 1.5.* famili, and needs to make your hands a bit dirty with your site's template code.

So grab your preferred editor and let's slice and dice the template's index.php file.

In an average template you need to insert the following code string in the <head> section (between the <head> ... </head> tags) the following line:
			<?php $document->setGenerator('ANY TEXT HERE'); ?>		

Of course, use instead of "ANY TEXT HERE" something you like - and is potentially misleading, as: "HEY, THIS ISN'T A JOOMLA SITE! " or something similar Cool. (Did you mother teachin' you to not take advice from fools?)

You may need to play around with the placement of the above code string. In some templates it works even placed above the <head> calls while most of them need it in between the <head> section. If placed correctly inside your index.php file when you take look to your page's source code you'll see in the source:

                        <meta name="generator" content="ANY TEXT HERE" />

 



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Joomla Free PHP
plugin by VivoCiti.com
 
Next >
Quantcast