Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Here's a little trick to protect your admin folder


php_Guy

Recommended Posts

Posted
i have added the bits to htaccess but it says on here you have to do others

I see, said the blind man.

 

The changes in the admin\includes\configure.php file that are mentioned are required if you change the name of the admin directory.

 

So where you see something like

 

define('DIR_WS_ADMIN', '/admin/');

 

if you renamed the directory to secret_admin

you would change your now secret_admin\includes\configure.php file so that it said

 

define('DIR_WS_ADMIN', '/secret_admin/');

 

if you get the drift.

Posted
I see, said the blind man.

 

The changes in the admin\includes\configure.php file that are mentioned are required if you change the name of the admin directory.

 

So where you see something like

 

define('DIR_WS_ADMIN', '/admin/');

 

if you renamed the directory to secret_admin

you would change your now secret_admin\includes\configure.php file so that it said

 

define('DIR_WS_ADMIN', '/secret_admin/');

 

if you get the drift.

 

 

thanks dude

  • 3 weeks later...
Posted

Most server cpanels have password protect folder option so i just password protect the admin folder. :rolleyes:

I could only ever afford cars under £500 but now i am moving up in the world.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...