Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Protecting a page with .htaccess and password
Old 02-20-2008, 08:22 AM Protecting a page with .htaccess and password
Junior Talker

Posts: 1
Trades: 0
I have been working on protecting a page of contact information for two days now and have resorted to pulling hair. The page I want to protect will prompt with the userid and password but it never recognizes my id and passwords?

I have the .htpasswd loaded above the public_html and the .htaccess in the web folder with the protected file. I uesd this generator to create the password:

http://cobalt.golden.net/generator/index.cgi



.htpasswd file:

member:81A3Q3.h7xK3s
member:34ue2R53d8ylw



.htaccess file:

<FilesMatch contacts.htm>
AuthName "Restricted File"
AuthType Basic
AuthUserFile /user/home/www/directory/.htpasswd
require valid-user
</FilesMatch>


The name of the file I am protecting is contacts.htm. Is the "Restricted File" text supposed to be changed or is that part of the code?
regulator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Protecting a page with .htaccess and password
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14715 seconds with 12 queries