Solved

a better password?

Posted on 1997-12-04
2
153 Views
Last Modified: 2013-12-25
OK, here's the deal. I've seen the various password protect
scripts, htaccess, javascript, etc.
What I would like to do, though, is this:
there is a single link on a page, user clicks link, they are then asked for a username and password and BASED ON USERNAME AND PASSWORD are sent to a specific page.
0
Comment
Question by:seanD
2 Comments
 
LVL 6

Accepted Solution

by:
tecbuilder earned 50 total points
ID: 1855799
Do you have server-side access.  If not then JavaScript is your only means of doing what you want.  The problem with JavaScript is that anyone can read the code.  You can do things to make it difficult to determine what the password and username is, but it won't stop someone who really wants to know.

The simplest and most effective means is to create a form with an input field and have the person enter in the filename.  If the file doesn't exist then they don't go anywhere.  You can create different files for different types of access or for each individual.  Each file would have it's own set of links that allows the user to access.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1855800
Or you could have your CGI script check $ENV{REMOTE_USER}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

13 Experts available now in Live!

Get 1:1 Help Now