There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
How to add a password protection to a web link


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
senna's Avatar
Senior Member with 229 posts.
 
Join Date: May 2002
Location: KY
17-Feb-2006, 09:31 PM #1
How to add a password protection to a web link
I am wanting to add a link to my website that when someone clicks on it they have to enter a password to get to the link. How would I go about that?

Thanks,

Senna
xgerryx's Avatar
Distinguished Member with 3,782 posts.
 
Join Date: May 2003
Location: New Zealand
Experience: "No threat to Einstein"
17-Feb-2006, 09:44 PM #2
There is a really basic bit of html code available here: http://www.sbrady.com/hotsource/javascript/passw.html

It is only basic and is easy get around but is alright for a privacy curtain type security.
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
17-Feb-2006, 10:02 PM #3
If you looking for something PHP, heres my code here; http://www.visionstudios.be/phptut1.php its extremly easy to do and understand if you need any help PM me! -cnelson.
hytechpro's Avatar
Junior Member with 14 posts.
 
Join Date: Sep 2005
18-Feb-2006, 07:02 AM #4
You do not specify which technology you hav used in your site
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Feb-2006, 01:29 PM #5
Is it an Apache or IIS webserver?
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
18-Feb-2006, 05:11 PM #6
If your server support PHP, then my script will work just fine. -cnelson.
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
19-Feb-2006, 09:07 AM #7
A .htaccess/.htpasswd combination is even better and more secure than PHP.

.htaccess Authentication Generator
.htpasswd Generator
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,109 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
19-Feb-2006, 12:04 PM #8
Quote:
Originally Posted by Eriksrocks
A .htaccess/.htpasswd combination is even better and more secure than PHP.

.htaccess Authentication Generator
.htpasswd Generator
Depends on how the PHP is used to password protect

HTTP passwords are easier to crack with "brute force" methods than form passwords using certain "password crack" devices.

If you use PHP to password protect using a form to enter the password, it can be more secure then a .htaccess file that uses the HTTP method of entering the password.

In other words, this:



Is easier to crack than this:

__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit

Last edited by namenotfound : 19-Feb-2006 12:10 PM.
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Feb-2006, 12:14 PM #9
Quote:
Originally Posted by namenotfound
Depends on how the PHP is used to password protect

HTTP passwords are easier to crack with "brute force" methods than form passwords using certain "password crack" devices.

If you use PHP to password protect using a form to enter the password, it can be more secure then a .htaccess file that uses the HTTP method of entering the password.
I disagree. I did some security testing for a new mail server for one of my clients and it was all web based. It was just as susceptible to brute force and it was using a Form for Username and password.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,109 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
19-Feb-2006, 12:16 PM #10
Ok, then I'm wrong.

It's just, I know a few "crackers" than spent years cracking into pornographic websites
They'd always complain about how hard it was to crack form-based passwords
But always seemed to be able to get into the other kind
jiml8's Avatar
Senior Member with 1,514 posts.
 
Join Date: Jul 2005
Experience: I've been at this for too long.
19-Feb-2006, 04:18 PM #11
With a form-based password you have the option in the form to put in a counter or timer, thereby slowing down a cracker and locking them out after a handful ot tries for a period of time. With .htaccess/.htpasswd you are at the mercy of the server configuration (which often you do not control) to slow or limit the bad guys. For that reason, and no other, I would have to go with form based being more secure.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:52 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.