Upgrading Site and all extensions to lastest Joomla 2.5. Template Download will be closed for some days

Change your Joomla Admin Folder Name or Path PDF Print E-mail
Written by Administrator   
Tuesday, 23 March 2010 08:40
If you would like to 'sort of' rename your Joomla administrator directory without having to modify any Joomla code or you don't want to have to use htpasswd to protect that directory, you can achieve it the following way. This may help limit issues for joomla security in the future.

 

1.Create a new directory in your root directory (eg. "myadmin")

2.Create an index.php file in your "myadmin" directory..

$admin_cookie_code="1234567890";
setcookie("JoomlaAdminSession",$admin_cookie_code,0,"/");
header("Location: /administrator/index.php");
?>

3.Add this to .htaccess of your real Joomla administrator directory

{xtypo_code}RewriteEngine On
RewriteCond %{REQUEST_URI} ^/administrator
RewriteCond %{HTTP_COOKIE} !JoomlaAdminSession=1234567890
RewriteRule .* - [L,F]

To enter your Joomla administration page, you point your browser to "http://yoursite.com/myadmin/" The php code will set a cookie that expires at the end of the session and redirect you to your real administration page. No one will be able to load anything from the administrator directory without having gone through the "myadmin" directory first.

Needless to say, you would choose another directory name for "myadmin" and change the cookie code "1234567890" to something else. Security through obfuscation is no substitute for the real thing but this might make you feel a little better.

Author Joomlahackers. Read This original post here


Administrator
Written on Tuesday, 23 March 2010 08:40 by Administrator

Viewed 14613 times so far.
Like this? Tweet it to your followers!


Newer news items:
Older news items:

Comments (4)Add Comment
0
...
written by Fares, April 28, 2010
Not working !

Thanks
0
...
written by AllOfUS, May 07, 2010
why you people posting bullshit's on you sites, Fist test it than post it..
So many sites ponits to hide admin panel with solutions like this, but this doesnt work at all.
whit this you can access your joomla beckend in two ways, in normal old fashion way like accessing adminstrator dir and with this stupid tip which all it does is redirect from one dir to onother..so why do we need to enter joomla backend in two ways, non sense

what we need is to access joomla in one way like changing administrator to something like admin or sys, and disable standard jooomla administratr direct access..
0
...
written by gurukatre, January 19, 2011
i have tried and i got solution. read care fully and follow the steps


go to root directory

create directory whatever you want (for security u can give any thing critic)

in my case i have created "gurubhai"

inside the "gurubhai" dir create index.php file

gurubhai/index.php


in above code u can change the cookie value whatever u want like "sameer1284" this is also for security region no one has to know

second line "JoomlaAdminSession" this is cookie name u can change this also for security

third line is ok no need to change any thing


now go to administrator folder

open index.php
and paste following code and change the name as u give in above code

if ($_COOKIE['JoomlaAdminSession'] != "12345678777")
{
header("Location: ../index.php");
}

i have pasted below following line

// Set flag that this is a parent file
define( '_JEXEC', 1 );



check it is working proper my side

check from different pc or browser

by directly typing

sitename/administrator

it will redirect to home page of the side


cheers
smilies/grin.gif
0
...
written by paklah, August 07, 2011
i already follow these step..but not work....the page redirect to installation/index.php...pls help.TQ

Write comment

security code
Write the displayed characters


busy
Last Updated on Thursday, 22 April 2010 09:40
 

Most downloads in 10 days

calendar.gifMay.20

a free Joomla template for travel

calendar.gifAug.01

Today Joomlapanel are pleased to announce the release of  Free JP Dreamland Template, the 5th Te...

calendar.gifMay.23

DS BUSUIT ARRIVED.The waits are finally over. With the long wait for the DS Busuit, now the beta...

calendar.gifJul.31

i-Business is a Joomla 1.5 native template. This is a clean and lightweight template.i-Business a...

Extensions stats

The download archive contains currently 143 downloads in 24 categories. To date, these have been downloaded 137239 times.

Blog Tips

Blog News
SEO Tips

Newest Files

calendar.gifMay.23

This Amazing Template design is delivered with the Following. 18 Module Positions CS...

calendar.gifMay.23

DS BUSUIT ARRIVED.The waits are finally over. With the long wait for the DS Busuit, now the beta...

calendar.gifMar.01

Latest Free Template From Joomvision

calendar.gifMar.01

Today Joomvision are pleased to announce the release of Free JV 9BodyTemplate

Online

We have 338 guests online

If you Are finding premium Joomla templates You should try Template monster


Hosting a Website-Web Hosting Tutorials - Web Hosting Reviews & Guide About Hosting a Website

Latest Comments