Those of you that have had to deal with hacked sites in the past know
that hackers love to target index.php index.html default.php and
default.html files.
Having just had to tell a customer that his dream template's index.php
has just been replaced with a hacked file (with ofcourse no backups made
by the non-techie customer) I wonder if there is a case for not using
the index.php filename of the main file of a template? maybe call it
template.php or something else? or even better have it be anything the
template developer wants, but defined in the database or xml?
I know its not more "secure" but it will stop more and more people
losing their hard work.
Thoughts?
Kindest regards
Phil.
The only thing that can prevent users from loosing their hard work is
what they obviously failed to do in the first place, backups.
Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer
2009/6/29 Mr Phil E. Taylor <ph...@phil-taylor.com>:
The main type of hacker is not smart - its a automated script that
attacks index.php files - not specifically Joomla template files, but
any writable index.php file. Thats my point, index.php is a reserved
filename for the default file in a folder and thats why hackers/hacking
scripts target them - it has nothing to do with it being Joomla or a
Joomla template at all.
IIRC Drupal uses template.php and a configurable file name :-)
It just seems very easy picking to me. Easy to change.
Yes it doesnt make Joomla any more "secure" but it does stop automated
index.php replacing hacks from messing you around...
just a thought.
I don't think rename the index.php filename is a good idea. It will make naming method a mess.
How about just make index.php unwritable after you set up the website and finished your settings?
That said, I wouldn't discuss this solely on the standpoint of security,
but more in terms of support and improving peoples understanding of the
system. In the end however, this is a small change with a whooping huge
impact on the community, which is why I'm hesitant to include it. A
legacy layer for this would be possible, but it would cost a little bit
performance...
Hannes
Mr Phil E. Taylor schrieb:
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.13.0/2209 - Release Date: 06/29/09 14:43:00