Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to protect the admin page?


nwilcox

Recommended Posts

Posted

I got the store working.. i am not adding my products..

 

how are people aking the admin page "hidden" or protected?

Posted
I got the store working.. i am not adding my products..

 

how are people aking the admin page "hidden" or protected?

 

First thing to do is change the name of the folder to anything but admin. Make it a secret word and only tell other people what it is on a "need to know" basis. Once you have done this make sure you update the two following lines in your admin/includes/configure.php file:

 

  define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute path required

 

Once that is done you have to password protect the admin directory itself. There are a few different ways to do this. One way, probably the easiest way, is if your webhost has a control panel where you can assign password protected status to folders on your website. If that's not the route for you, there is also the possibility to password protect via a .htaccess file. If you want more info on that, google .htaccess and you will find a wealth of information.

 

The final way I know of is to use a contribution such as this one:

http://www.oscommerce.com/community/contri...,admin+password

or this one: http://www.oscommerce.com/community/contri...,admin+password

 

There are many advantages to using a good contribution to password protect your admin. The number one reason in my book is that the password is encrypted in your database and the interface for creating users, changing passwords, etc, is part of the admin tool.

 

Research the various options, contributions, etc, and decide which is the best for you.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Posted

If you can't get the amin password contrib to work, a really simple way would be to CHMOD it 772 ;)

What happens when a crazy man goes insane?

Archived

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

×
×
  • Create New...