Password protected web pages - creating ?

  • Thread starter Thread starter John Fitzsimons
  • Start date Start date
J

John Fitzsimons

I don't know whether such a freeware program even exists BUT I thought
I might ask here anyway.

Is there a program that actually makes this sort of thing easy ? I
know there are hundreds of HTML creating programs BUT it is *this
specific feature* I want. TIA.

Regards, John.
 
Trying to get a word in edge-wise "Ray" wrote in
But this is so easily defeated by using "View Source" is it really any
protection? <G>

I haven't tried it. Is it that bad? There was another script file that
denied access to any page, but I can't remember the name right now -
and it's on my computer. :) Got it from the same place
http://javascript.internet.com/. You would think there would be a CSS
page to do this.
 
Trying to get a word in edge-wise "Ray" wrote in
[snip]
Is there a program that actually makes this sort of thing easy ? I
know there are hundreds of HTML creating programs BUT it is *this
specific feature* I want. TIA.

Regards, John.

http://javascript.internet.com/passwords/three-tries.html

But this is so easily defeated by using "View Source" is it really any
protection? <G>

I haven't tried it. Is it that bad? There was another script file that
denied access to any page, but I can't remember the name right now -
and it's on my computer. :) Got it from the same place
http://javascript.internet.com/. You would think there would be a CSS
page to do this.

I'm no expert on this but if you mean a JavaScript to prevent viewing
source it is my understanding that those type of scripts can be defeated
by turning off JavaScript. (The experts I'm sure will be along if I'm
wrong.)

Of course these scripts would stop anyone who doesn't know basic HTML but
I'm guessing those aren't the ones you would want/need to stop with a
password.

A CGI script might be better for this. The original poster might want to
look for a Webhost that includes a way to password protect a site or run
an advanced Google search using CGI and Password. (No, I don't know CGI
but do have some idea of what you can do with it.)


Sorry if Im off topic for group.
 
Try
Guardian...
This is a very simple password script that is impossible to crack.
Using simple technology the password is never once written in the source
code.
This script makes it possible to password protect any page on your site.

http://www.fortunecity.com/lavendar/clint/29/guardian_v1.html

--
TranZ
----------------------------------

| |
| > Trying to get a word in edge-wise "Ray" wrote in
| > <[email protected]>:
| >> | >>
| [snip]
| >>>> Is there a program that actually makes this sort of thing easy ? I
| >>>> know there are hundreds of HTML creating programs BUT it is *this
| >>>> specific feature* I want. TIA.
| >>>>
| >>>> Regards, John.
| >>>
| >>> http://javascript.internet.com/passwords/three-tries.html
| >>>
| >>
| >> But this is so easily defeated by using "View Source" is it really any
| >> protection? <G>
| >
| > I haven't tried it. Is it that bad? There was another script file that
| > denied access to any page, but I can't remember the name right now -
| > and it's on my computer. :) Got it from the same place
| > http://javascript.internet.com/. You would think there would be a CSS
| > page to do this.
| >
|
| I'm no expert on this but if you mean a JavaScript to prevent viewing
| source it is my understanding that those type of scripts can be defeated
| by turning off JavaScript. (The experts I'm sure will be along if I'm
| wrong.)
|
| Of course these scripts would stop anyone who doesn't know basic HTML but
| I'm guessing those aren't the ones you would want/need to stop with a
| password.
|
| A CGI script might be better for this. The original poster might want to
| look for a Webhost that includes a way to password protect a site or run
| an advanced Google search using CGI and Password. (No, I don't know CGI
| but do have some idea of what you can do with it.)
|
|
| Sorry if Im off topic for group.
 
John Fitzsimons said:
I don't know whether such a freeware program even exists BUT I thought
I might ask here anyway.

Is there a program that actually makes this sort of thing easy ? I
know there are hundreds of HTML creating programs BUT it is *this
specific feature* I want. TIA.

Regards, John.

I find this little bit of code does the trick OK,
and the actual password is just the folder name where the page you want is
called index.htm .
*Just change `yoursiteURLhere` to the URL of yours.
Just enter the name of the folder into form and away you go. *
----------------------------------------------------------------------------
----------
<form
ONSUBMIT="window.location.href='http://www.yoursiteURLhere.co.uk/' +
this.elements[0].value + '/index.htm'; return false">
<br><input TYPE="password" SIZE="20"><input TYPE="submit"
VALUE="Log-in"></form>
 
Ummm....try right click -----pulldownmenu
view source-

you see the entire scripting there
so not impossible

nice though for my INTRANET customers...I'll use it
 
Ray said:
But this is so easily defeated by using "View Source" is it really any
protection? <G>

Here's one that I use and it is pretty effective. You simply need to
specify a number for pw and pw2 and then calculate the value for pw3
(it's 159 for the example below because that'w what you get if pw is 4
and pw2 is 53) by the equation given in the script. I suppose you could
eventually guess the password numbers but it would take a long time.
Pretty clever.
Jim Daniel

<SCRIPT LANGUAGE="JavaScript">
<!--
// Password Access Script (Version 1.2) (c) Brian Miller, 1997.
// Tech Support: (e-mail address removed)
// Released: June 21, 1997
// |¯¯) |¯¯) | |¯¯¯| |\ | |\ /| | | | |¯¯ |¯¯)
// |-- |-- | |---| | \ | | \/ | | | | |-- |--
// |__) | \ | | | | \| | | | |__ |__ |__ | \
// Use this script freely... AS LONG AS THIS HEADER IS INCLUDED.

var pw=prompt("Enter Password Part I","");
var pw2=prompt("Enter Password Part II","");
var pw3= (pw2*pw)+(pw-pw2)-pw
if (pw3 == 159)
parent.location.href = "grades.htm"
else
alert("ACCESS DENIED Reload and Try Again.");
// ******************** VERSION 1.0 NOTES ********************
// * 1.) The password can be any amount of numbers *
// * 2.) Letters CANNOT be used in this version. *
// * You can contact me at (e-mail address removed) to see if a *
// * new version is ready. *
// * 3.) At this time, you can only use one password but *
// * I am working on allowing multiple passwords. *
// * 4.) You can change what it says on the alert without *
// * affecting the script. *
// * 5.) You can change where the script goes when it *
// * receives the correct password by changing this: *
// * parent.location.href = "NEW LOCATION" *
// * 6.) Please report any bugs to (e-mail address removed) *
// ***********************************************************
//--->
</SCRIPT>
 
Jim said:
Here's one that I use and it is pretty effective. You simply need to
specify a number for pw and pw2 and then calculate the value for pw3
(it's 159 for the example below because that'w what you get if pw is 4
and pw2 is 53) by the equation given in the script. I suppose you could
eventually guess the password numbers but it would take a long time.
Pretty clever.
Jim Daniel

<SCRIPT LANGUAGE="JavaScript">
<!--
// Password Access Script (Version 1.2) (c) Brian Miller, 1997.
// Tech Support: (e-mail address removed)
// Released: June 21, 1997
// |¯¯) |¯¯) | |¯¯¯| |\ | |\ /| | | | |¯¯ |¯¯)
// |-- |-- | |---| | \ | | \/ | | | | |-- |--
// |__) | \ | | | | \| | | | |__ |__ |__ | \
// Use this script freely... AS LONG AS THIS HEADER IS INCLUDED.

var pw=prompt("Enter Password Part I","");
var pw2=prompt("Enter Password Part II","");
var pw3= (pw2*pw)+(pw-pw2)-pw
if (pw3 == 159)
parent.location.href = "grades.htm"
else
alert("ACCESS DENIED Reload and Try Again.");
// ******************** VERSION 1.0 NOTES ********************
// * 1.) The password can be any amount of numbers *
// * 2.) Letters CANNOT be used in this version. *
// * You can contact me at (e-mail address removed) to see if a *
// * new version is ready. *
// * 3.) At this time, you can only use one password but *
// * I am working on allowing multiple passwords. *
// * 4.) You can change what it says on the alert without *
// * affecting the script. *
// * 5.) You can change where the script goes when it *
// * receives the correct password by changing this: *
// * parent.location.href = "NEW LOCATION" *
// * 6.) Please report any bugs to (e-mail address removed) *
// ***********************************************************
//--->
</SCRIPT>

Sorry. Forgot to mention that you put the name of your target web page
(the one you are protecting) in the place of what I have as "grades.htm"
in the script above.
Jim D.
 
Ummm....try right click -----pulldownmenu
view source-

you see the entire scripting there
so not impossible

nice though for my INTRANET customers...I'll use it
[snip]

On the second script posted
(http://www.fortunecity.com/lavendar/clint/29/guardian_v1.html) you don't
see the complete URL when you view source because the password forms one
portion of the URL. The script combines the password that is entered with
the part of the URL that is in the script to form the complete URL. An
incorrect password produces an invalid URL.
 
Try
Guardian...
This is a very simple password script that is impossible to crack.
Using simple technology the password is never once written in the source
code.
This script makes it possible to password protect any page on your site.

Looks worthwhile too. Thanks for your, and Ray's, comments on the
above. :-)

Thanks to Jim as well. I will need to think a bit about that script.

Regards, John.
 
Try
Guardian...
This is a very simple password script that is impossible to crack.
Using simple technology the password is never once written in the source
code.
This script makes it possible to password protect any page on your site.

http://www.fortunecity.com/lavendar/clint/29/guardian_v1.html
Yep that works. The page can of course then be saved as a favorite/bookmarked
etc.
What would be useful is a freeware version of a program like SecureHTML which
encrypts the page using JavaScript: correct password decrypts the page for
that instance, incorrect password produces garbage.
 
fiddle with this in a htm file:

<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>(Type a title for your page here)</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>
<script language='JavaScript'>
function pass()
{
var passr=prompt('pasword please','textbox message');
if(passr=="pasword")
{
location.href='www.provider.com.au/~logonname/folder';
}
if(passr!="pasword")
{
alert('error message');
}
}
</script>
<body bgcolor="#008040" text="#ffffff" link="#0000ff" vlink="#80ff00"
alink="#ff0000">
onLoad='pass()'
</body>
</html>
 
Are you hosted on a Unix/Linux based OS for your server?

I am usually dissapointed with the Java/HTML code Passwored protection..

I just use .htaccess file in the folder you are protecting.. It is IMHO the
best password protection for webpage Password Protecting. Depending on the
hosting Company, and their on-line control panel it amy be easy to install..
 
Back
Top