Ozone Posted January 24, 2007 Share Posted January 24, 2007 Hello am new on using oscommerce. i have install oscommerce with template that i bought. i want to know how can i put password protect on mysite.com/admin this is the folder that i access catalog etc. if i type mysite.com/admin it put me on the oscommerce administration and anyone can have access. also can i change the name of the folder admin to something else? for security reasons? i know i must play with .htaccess or htpassword. put i read many tutorials without any result. thanks a lot Link to comment Share on other sites More sharing options...
Ozone Posted January 24, 2007 Author Share Posted January 24, 2007 good i found how can i protect the direcotry. from cpanel:) now can i rename the admin folder to somthing else or i will be a problem ?? i must setup the site again or i can do something else? Link to comment Share on other sites More sharing options...
ataman79 Posted February 1, 2007 Share Posted February 1, 2007 good i found how can i protect the direcotry. from cpanel:)now can i rename the admin folder to somthing else or i will be a problem ?? i must setup the site again or i can do something else? You protect the dir from CPanel of you host , right ???? Is there any other suggestions, do you know??? Link to comment Share on other sites More sharing options...
gotit Posted February 4, 2007 Share Posted February 4, 2007 You protect the dir from CPanel of you host , right ???? Is there any other suggestions, do you know??? My host do not give me this option of protecting folder in control pane. I use 1and1.com I tried to change the folder name after installation, but when I go to that folder and click on any links I get 404 error (page not found), because the link is pointing to ..mysite.com/admin/..... and not to ..mysite.com/newadmin/.... What can I do to correct this, or password protect my admin folder? I really need this. Link to comment Share on other sites More sharing options...
ataman79 Posted February 13, 2007 Share Posted February 13, 2007 My host do not give me this option of protecting folder in control pane.I use 1and1.com I tried to change the folder name after installation, but when I go to that folder and click on any links I get 404 error (page not found), because the link is pointing to ..mysite.com/admin/..... and not to ..mysite.com/newadmin/.... What can I do to correct this, or password protect my admin folder? I really need this. My host don't give the same option too. So after you chenged tje admin directory you must correct your configuration file to show the right path to your new admin directory !!!! This is the reason that you got the 404 eror :) Link to comment Share on other sites More sharing options...
zarren Posted February 13, 2007 Share Posted February 13, 2007 Hey guys Heres how to password protect a folder. First thing visit : http://home.flash.net/cgi-bin/pw.pl type in the username and password you want to use and click encrypt. Next page should display somthing like this : username:Z/21GlndXNt7g Now you have your encrypted password :) next load up notepad and paste and edit to suit the following: AuthUserFile /full/path/to/.htpasswd AuthType Basic AuthName "My Secret Folder" Require valid-user For EG: AuthUserFile /host/www/catalog/.htpasswd (If you're not sure of the full path to your site or home directory, ask your Web hosting company for this info.) AuthType Basic AuthName "My Secret Folder" Require valid-user Click save as and change the save as type box to all files. Then call this document .htaccess and save. Next open up notepad again and paste your key here. Your key is the code you should have from before EG: username:Z/21GlndXNt7g Click save as and change the save as type box to all files. Then call this document .htpasswd and save. Then upload your .htpasswd file to the directory stated in your .htaccess for EG: if you entered host/www/catalog/.htpasswd in the .htaccess file you would upload .htpasswd to the catalog folder. next upload you .htaccess file to your admin directory and hey presto you are protected. Hope this has helped My host don't give the same option too. So after you chenged tje admin directory you must correct your configuration file to show the right path to your new admin directory !!!! This is the reason that you got the 404 eror :) Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2007 Share Posted February 13, 2007 I followed these steps and I cannot access the admin page at all unless I delete the .htaccess file. It will not accept any username and password I enter. Do I need to input the encrypted password or the non-encrypted password? Is there any way to change it to plain text? Link to comment Share on other sites More sharing options...
FyeRoo Posted May 26, 2007 Share Posted May 26, 2007 I am having a problem with password protecting, when I set the files correctly It does not work. It pops up the login box but when I enter my username and password it makes me do it again, and again, and again,ect.... when I press cancel it prompts me for the username and pass 4 times then goes to my hosts website. Any help please? Link to comment Share on other sites More sharing options...
bill110 Posted May 26, 2007 Share Posted May 26, 2007 The contribution in my signature below "password protect admin" has more specific instructions for how to find path to the .htpasswd file. Also lets you encrypt them from your site. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.