[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

a better password?

Posted on 1997-12-04
2
Medium Priority
?
184 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 150 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 85

Expert Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 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