Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Login with a password

I'm operating a web site and considering allowing registered users additional features.  These fetaures would have to be password protected each with an individual login name and password.

I am interested in one with a setup similar to that of experts - exchange where a user is asked to enter there password to get into the site!

Can you tell me where I can obtain such a cgi script, it must be free.

Thanks alot
0
bulmer
Asked:
bulmer
  • 2
  • 2
1 Solution
 
icdCommented:
This access control uses an 'htaccess' file to determine which users are allowed to enter a site (actually a directory). There is an access tutorial at:-

http://faq.clever.net/htaccess.htm

This will give you full details on how to set up this file.

0
 
bulmerAuthor Commented:
Will this allow me to set up a protection similar to yours?  How secure is this?  I already have a .htaccess file used for redirecting error messages and have found it to be unsecure.  I'd prefer a cgi script?  Any more idea's?
0
 
icdCommented:
Experts Exchange uses this scheme, as do many sites and it is secure. A cgi script can be no more secure (and indeed is likely to be far LESS secure).

Some sites will however allow the maintainence of the .htaccess file to be carried out by a cgi script. In this way people can register with a site through a script. Their username and password are entered into the .htaccess file using the script. I understand this is the way that Experts Exchange works and perhaps this is what you are looking for?

I am puzzled by your suggestion that you are already using this for 'redirecting error messages' and that you find it 'unsecure'. Can you elaborate?

0
 
bulmerAuthor Commented:
nope, you have just solved my problem!  Thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now