Solved

Password protection

Posted on 1997-12-17
11
338 Views
Last Modified: 2013-12-25
Hello.  I have absolutely no experiance in CGI stuff, but I have a new web server that supports CGI-BIN, whatever that is.  Now, I hear that I can use that to password protect my pages, but have ABSOLUTLY no idea how to do it.  I only know how to make my page designs, and upload files.

I want to be able to control access to a "Members Area", based on a list of users and passwords.
I think what I want is a script that is ready-to-use.
ei. I just want to be able to plug it in and make it work.
Thanks!
0
Comment
Question by:StarFieldSoftware
  • 3
  • 2
  • 2
  • +4
11 Comments
 

Expert Comment

by:mramsay
ID: 1831679
0
 

Expert Comment

by:mramsay
ID: 1831680
http://www.freecode.com
This site has a range of cgi programs that you should check into

0
 
LVL 5

Expert Comment

by:julio011597
ID: 1831681
If you mean access authentication such that Experts-Exchange provides, you don't need CGI; that's a matter of web server setting.

Anycase, you should state which OS and web server you are on.
0
 
LVL 6

Expert Comment

by:alamo
ID: 1831682
It all depends on what server you are using... if you are using a server such as Apache or httpd then you can do what you want by just configuring files, though it does in fact become easier to set up and maintain with CGI scripts (a form to add a user, for instance). If you are using IIS on NT then you can't do standard password authentification (the pop-up box kind) without addding your users as users on your NT system - which may be easier or may be harder, depending on yout point of view. (There is another way to do it on IIS but involves API programing).

There are also other ways to implement passwords which restrict access but aren't server-validated passwords in the same sense. Cookies is the most common... this requires CGI programming, though I bet their are scripts around. It has its drawbacks but migth be enough, you need to tell us more!
0
 

Author Comment

by:StarFieldSoftware
ID: 1831683
I am being hosted on unix, and my hosting company does not support user names/ passwords on files and directories.  I either can set the file to be open to the general public, or only to me.

I have a CGI-BIN, but don't know how to use it.

Thanks!
-Travis
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:eribac
ID: 1831684
StarFieldSoftware,

Goto "http://www.itm.com/cgicollection/index.cgi?page=1", and download the Register.pl script. This script will allow you set up a password protection area within you site. This scipt is fairly simple to set up and use, but you will have to invest some time into it.
0
 

Author Comment

by:StarFieldSoftware
ID: 1831685
I looked at the register.pl file, but have no idea what to do with it.  It also refers to another file, something like htpasswd.pl, which I don't have.

Sorry, but I can't use this if I don't have any background in this area.
0
 

Expert Comment

by:mac119
ID: 1831686
I think you really want to be able to use the authorization features of the web server your provider uses, rather than mucking about with a cgi-bin script.

Most providers don't let you muck about too much with user or group privileges on your files, so if you used a cgi-bin script to guard your files, the area from which you would have to read the files would be readable as well.

Servers like NCSA and Apache allow per-directory settings in files named .htaccess; assuming your provider uses Apache (better, and still free) you should go to http://www.apache.org and peruse the documentation sections which deal with Apache's authorization scheme.

It is possible to embed your files in cgi scripts and only allow output to be generated if certain conditions are met (for example, correct user and password cookies) but this is such a pain in the neck that I don't think anyone really does this.
0
 

Author Comment

by:StarFieldSoftware
ID: 1831687
I asked my provider about authentication stuff and they said that they don't provide that.  That is why I need a CGI script. (possibly perl?)
0
 

Accepted Solution

by:
netpro earned 100 total points
ID: 1831688
The very best source for a beginning CGI programmer is in a new book "CGI-Perl CookBook" written in Perl by Matt Wright and Craig Patchett.

It will cost you only $29.95 but it has a security program that will do exactly what you want, and more importantly it has all the documentation (line by line of source code) that tells you how the program works. The book also has many other original Perl programs which are of commercial quality. The CD that comes with the book has program versions for Windows, UNIX and Mac. If you have your own server as I do these programs will open up a new world of Web magic.

The best place I have found to obtain the book with CD-ROM is  at the BookPool http:www.bookpool.com for $29.95.

P.S. I have absolutely "no" connection with the book or authors except I am a very happy Webmaster using these programs.


0
 

Expert Comment

by:netpro
ID: 1831689
I almost forgot--for a preview go to http://www.cgi-perl.com to see some of the Perl programs.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now