Solved

a better password?

Posted on 1997-12-04
2
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 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