-
July 9th, 2002, 07:35 PM
#1
Junior Member
Password Scripts
Does anybody know where I could get scripts so I could have a password protected site. I need a password script so that you have to enter a password to enter the site and other passwords vaious sections of the site.
Thanks for any responses.
-
July 9th, 2002, 07:46 PM
#2
It would help if you mentioned what kind of server you are running....
Probably a combination of a users file and an .htaccess file...hard to say without knowing the server though...
Neb
There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.
(Merovingian - Matrix Reloaded)
-
July 9th, 2002, 07:47 PM
#3
Junior Member
Pwd scripting
You could write one yourself in java, or go to coffeecup.com. They have a program that will do it for you... You have to register it to get to use it on the web, though...
BEGIN VIRUS.EXE
There is no spoon, but you yourself that bends...
END VIRUS.EXE
-
July 9th, 2002, 07:55 PM
#4
Ummm, What language?
PHP
PERL
Java
Javascript
C
Python
?????
-
July 9th, 2002, 07:58 PM
#5
Senior Member
usually this is implemented via the web server's configuration or in a self contained configuration file.
if you are using iis, you can restrict anonymous access forcing a login and then use ntfs perms to distinguish who has what access. for apache the most common method is through mod_access configured in the .htaccess file located in the directory (or parent directory - or grandparent directory...) you are wanting to protect.
you can also do this through scripting (as you asked) by sending the appropriate http response header. something to the effect of:
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm=""
the second request to this response should include an authorization header with a value of the authorization realm and a base64 encoded string consisting of the username and password joined by a colon.
-
July 9th, 2002, 10:01 PM
#6
-
July 27th, 2002, 08:43 AM
#7
Junior Member
other ideas
There are also certain remotely hosted scripts if you wanted to use them, it's a cheap way around the problem, it might be worth checking out, <a hhostedscripts.com is one, and you can find many on resourceindex.com Other than that, search goolge. But the resource index has lots o goodies
-
July 27th, 2002, 03:33 PM
#8
JavaScript password protection system
In the Html origin codes of a site a JavaScript code
<head><title> Website-TITLE </title>
<script>
function jprot() {
pass=prompt("Enter your password","password");
document.location.href="http://protectedserver.com/index.html";
}
else {
alert( "Password incorrect!" );
}
}
</script>
</head>
-
August 5th, 2002, 01:26 PM
#9
Member
If you use a NT server with IIS, you can use the NTFS permissions, this is the easiest way to do it.
It always depends on what you want to do ! You could always use ASP, PHP and all kinds of other server side scripting and make sure you always check for a open session for the user to get the other pages in you web site structure or else anyone that as a direct link will go through without the password request !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|