The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Creating a password protected area, Password protected page - help!
co_gooner
post Feb 9 2009, 03:55 PM
Post #1





Group: Members
Posts: 8
Joined: 30-January 09
Member No.: 7,681



Hi everyone,

I am trying to create an area on my website that will require users to enter a password to proceed; I have no idea how to achieve this, is it something that the webhoster might get involved with?

Can a kind soul point me in the correct direction - preferably in great detail ohmy.gif)

thanks a mill

david
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 9 2009, 04:03 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,350
Joined: 9-August 06
Member No.: 6



What kind of server are you on and how fancy do you need it?

For a simple login prompt on Apache, see http://google.com/search?q=apache+basic+authentication .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
co_gooner
post Feb 9 2009, 06:24 PM
Post #3





Group: Members
Posts: 8
Joined: 30-January 09
Member No.: 7,681



QUOTE(pandy @ Feb 9 2009, 02:03 PM) *

What kind of server are you on and how fancy do you need it?

For a simple login prompt on Apache, see http://google.com/search?q=apache+basic+authentication .


I host with Lunarpages (if that helps?)

thanks

david
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 9 2009, 06:31 PM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,308
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
I host with Lunarpages (if that helps?)
Which plan?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
co_gooner
post Feb 9 2009, 06:34 PM
Post #5





Group: Members
Posts: 8
Joined: 30-January 09
Member No.: 7,681



QUOTE(Darin McGrew @ Feb 9 2009, 04:31 PM) *

QUOTE
I host with Lunarpages (if that helps?)
Which plan?


It's a pretty basic one, like $6.95 a month or something
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 9 2009, 09:23 PM
Post #6


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,350
Joined: 9-August 06
Member No.: 6



To be able to do this you must know if you are on a Linux/Unix server with Apache or Windows server with IIS. They seem to have both kinds.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
co_gooner
post Feb 10 2009, 03:16 PM
Post #7





Group: Members
Posts: 8
Joined: 30-January 09
Member No.: 7,681



QUOTE(pandy @ Feb 9 2009, 07:23 PM) *

To be able to do this you must know if you are on a Linux/Unix server with Apache or Windows server with IIS. They seem to have both kinds.


It says Linux server with Apache ver 1.3.41

thanks

david
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 10 2009, 03:30 PM
Post #8


WDG Member
********

Group: Root Admin
Posts: 8,308
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Then see the Apache server FAQ entry How do I set up Apache to require a username and password to access certain documents?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
co_gooner
post Feb 10 2009, 03:59 PM
Post #9





Group: Members
Posts: 8
Joined: 30-January 09
Member No.: 7,681



QUOTE(Darin McGrew @ Feb 10 2009, 01:30 PM) *


Thanks, I've had a look at the stuff in the link and it's mostly double dutch to me sad.gif

I'm at /etc/stripephoto.com in my cpanel, but how do I create a password file and then how do I apply to specific pages; what I eventually want to do is have people's photographs on a page that is password protected, but there will be several pages all with different users/passwords, and I can't figure out how to apply a user/password created in the etc directory to a specific page

Sorry if I am being completely dense wacko.gif

david
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sriyal
post Feb 14 2009, 08:53 AM
Post #10





Group: Members
Posts: 1
Joined: 14-February 09
Member No.: 7,806



QUOTE(BariyaB @ Feb 14 2009, 08:30 AM) *

QUOTE(co_gooner @ Feb 10 2009, 03:59 PM) *

QUOTE(Darin McGrew @ Feb 10 2009, 01:30 PM) *


Thanks, I've had a look at the stuff in the link and it's mostly double dutch to me sad.gif

I'm at /etc/stripephoto.com in my cpanel, but how do I create a password file and then how do I apply to specific pages; what I eventually want to do is have people's photographs on a page that is password protected, but there will be several pages all with different users/passwords, and I can't figure out how to apply a user/password created in the etc directory to a specific page

Sorry if I am being completely dense wacko.gif

david


Yeah, Correct.



I'm at /etc/stripephoto.com in my cpanel, but how do I create a password file and then how do I apply to specific pages; what I eventually want to do is have people's photographs on a page that is password protected, but there will be several pages all with different users/passwords, and I can't figure out how to apply a user/password created in the etc directory to a specific page

Sorry if I am being completely dense wacko.gif

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 14 2009, 10:10 AM
Post #11


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,350
Joined: 9-August 06
Member No.: 6



See if you find this easier to follow.
http://www.javascriptkit.com/howto/htaccess3.shtml

You protect a directory and everything within, including subdirectories. Note that the password must be encryped in .htpasswd. They have a tool for that at the above site.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
yang yang
post Mar 8 2009, 01:14 AM
Post #12


Novice
**

Group: Members
Posts: 20
Joined: 5-October 06
Member No.: 339



Did a quick search and found this password encryption tool:

http://www.thejackol.com/scripts/htpasswdgen.php

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
curtain-raiser
post Mar 8 2009, 02:15 AM
Post #13


Newbie
*

Group: Members
Posts: 10
Joined: 8-March 09
Member No.: 8,008



I am not getting exactly where you want to add password protected area, on any special folder or anywhere else.
As you are using Linux server and want to make a password protected area.
IF you can code in php, make sessions on every page with the condition if user logged in show him this page, where you don't want to allow any user without logged in, And make a login page, and Enable that session when user submit right password.
Hope this help, Or if its not what you are looking for please tell us briefly about your requirement.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th August 2019 - 09:37 AM