Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Password protecting admin directory?


vexer

Recommended Posts

I just installed oscommerce

i instaled it on my own home server, and need to protect my admin section

(since it's viewable by anyone atm)

and i can't seem to find anywhere to put in an admin user/pass that will be asked when someone goes to [domain]/admin

 

any idea how I can do that??

people are telling me to use the .htaccess file in that dir

but i've never done that before so i don't know exactly what to do

 

thnx

Link to comment
Share on other sites

I just installed oscommerce

i instaled it on my own home server, and need to protect my admin section

(since it's viewable by anyone atm)

and i can't seem to find anywhere to put in an admin user/pass that will be asked when someone goes to [domain]/admin

 

any idea how I can do that??

people are telling me to use the .htaccess file in that dir

but i've never done that before so i don't know exactly what to do

 

thnx

have a look at contributions.

http://www.oscommerce.com/community/contri...ons,1828/page,2

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

 

 

haha that's what i just did

and i downloaded something for it

but wooo i messed it all up...

for some reason none of it is working

it told me to import a mysql file into the DB

i did that and now it's all messing up.. thnx though

Link to comment
Share on other sites

As you are running this on your own server, you can easily protect the admin section by fiddling with the Apache configuration file - https.conf (I assume you're using apache ?). You need to read up on a technique called 'basic authentication' (yes, the technique actually IS called 'basic') - you'll find out all you need to know about this in the Apache documentation - it's not difficult to set up.

 

In addition, you could / should protect the whole admin area with SSL (https) but be aware that this can be surprisingly time consuming to set up and get right in Apache (and probably any other web server) until you fully understand what it's doing and how it works, so you need to be patient and you'll find yourself having to do a lot of searching about to get the answers you need.

 

Rich.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...