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
Solved

a better password?

Posted on 1997-12-04
2
161 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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…
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.

839 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