Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Securing the admin panel


elementskater255

Recommended Posts

hi, you might use .htaccess files.

 

########### .htaccess file contents ################

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

 

DirectoryIndex default.php index.php index.htm index.html

AuthUserFile "c:/somewhere/dir/Apache/htdocs/.htpasswd"

AuthType Basic

AuthName "Admin"

 

require valid-user

Options Indexes FollowSymlinks MultiViews

 

########### .htaccess eof ################

 

with absolute path to .htpasswd (AuthUserFile)

you can generate the .htpasswd file with the apache tool, don't remember the name of the binary, look in apache/bin

 

you can put the .htaccess file into oshome/admin and the browser will pop up a login dialog.

other possibility is to secure it with SSL but that's already been answered.

just putting up a php login won't do much unless you use SSL

 

hth

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...