|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Thread Type: Sticky Thread Total posts in this thread: 21
|
|
| Author |
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
Password Protection using .htaccess and Apache Servers. You may recgonize this type of protection as the log on box that looks like this: ![]() If you don't pass authentication, you'll see a 401 error. Note: there are other methods to create password protection using .htaccess that require one less file. I feel the the method I use provides one more layer of protection. The server will first check for authorized "agents" or users before checking to see if the user's password is vaild. Tools:
We will create 3 files: .htaccess; .htgroup; .htpasswd. When saved on the server, the default CHMOD value of 644 should be kept. Steps:
TEST, TEST, and TEST again. Post any question and I'll be happy to help. PM or IM anything that might be specific to your site regarding this subject please because this board is public... - ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks ---------------------------------------- [Edit 1 times, last edit by shelfimage at Oct 4, 2005 6:19:49 PM] |
||
|
|
Newbie India Joined: Oct 4, 2005 Post Count: 43 Status: Offline |
I was wondering if there is any other way to implement password protection on IIS. ![]() ---------------------------------------- Regards, -------------------- Amit Choudhary |
||
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
I only know about local authentication on window based systems and intranets... But I'm fairly certain it can be done via FrontPage. I found some links though for you: http://www.msfrontpage.net/fp/protect.htm http://www.powerasp.com/content/code-snippets/advanced-password-protection.asp http://www.topshareware.com/IISPassword-download-14007.htm I didn't read any of them, just bookmarked for later use.... - ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks |
||
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2933 Status: Offline |
Good post shelfimage. ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates |
||
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2933 Status: Offline |
@Meet, Authentication and protecting directories on IIS is tied into the operating system - Windows. When I ran my Windows 2000 servers, I would protect directories via the OS. That would be a problem if your just renting space on a Win2k server since I doubt you would have admin access! I think you can do this via FrontPage extensions - BTW FP extensions are server components that don't require that you use FrontPage to use them ... ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates |
||
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
UPDATE** Two small but important details to consider when using this method should be explained. Thank-you Susie . First. We learned that the .htaccess file needs to include the full path to server when pointing to the files. Details: Reference Step #2 above: Open your text editor and enter the following lines: In some case, the lines in bold above will have to be written differently so the server can locate .htpasswd and .htgroup.AuthType Basic AuthName "This is the message you will see in the Log on Box - - EDIT THIS to your Liking, for example, Authorized Users only::Log in Below." AuthUserFile /.htpasswd AuthGroupFile /.htgroup <Limit GET> require group agents </Limit> AuthUserFile /full/path/to server/.htpasswd AuthGroupFile /full/path/to server/.htgroup replacing /full/path/to server/ with your server's path. This is not the www address of your website. It is often the path to Perl or somethimes the cg-bin. It is where your account resides on your shared hosting plan. Examples would be: AuthUserFile /vws/UserName/public_html/.htpasswd AuthGroupFile /vws/UserName/public_html/.htgroup AuthGroupFile /home/UserName/www/.htgroup AuthGroupFile /home/UserName/www/.htpasswd Second. FrontPage will rewrite your .htaccess file when FP Extensions are installed and when Extensions are uninstalled. Also, there may or may not be a conflict between FP extensions on an Apache based server and .htacess using this method. So test again after making any changes to your server. Does anyone have more information to share about FP and .htaccess usage? Here are some links about password protection using FP 2003: http://support.microsoft.com/default.aspx?scid=kb;en-us;825498 http://www.frontpagetalk.com/forums/How_to_Pa..._1/tmode_1/smode_1/tm.htm http://www.msfrontpage.net/fp/protect.htm Enjoy! ![]() ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks |
||
|
|
Newbie Joined: Apr 26, 2006 Post Count: 20 Status: Offline |
He shelfimage, nice tutorial and I need this really bad at the moment. I was going to do this tutorial until I found out that your links were dead... Is there anything anyone can do about it? |
||
|
|
Advanced Member Joined: Sep 3, 2005 Post Count: 2206 Status: Offline |
Links work fine for me. ---------------------------------------- Quiquid latine dictum sit altum viditur |
||
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
He shelfimage, nice tutorial and I need this really bad at the moment. I was going to do this tutorial until I found out that your links were dead... Is there anything anyone can do about it? hmm, which links? ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks |
||
|
|
Newbie Joined: Apr 26, 2006 Post Count: 20 Status: Offline |
http://www.inch.com/info/tech/faqs/htaccess/htaccess.php http://www.inch.com/info/tech/faqs/htaccess/htaccess.php In your first post |
||
|
|
|
|
|
Current timezone is GMT Mar 22, 2010 8:48:24 AM |