View Full Version : Password
SharedJourneys
6-5-02, 07:57 PM
I have created an online class manual and I need to provide access to only those who have registered for the class. How can I set up a password on the server, or is there another way to do this?
The file is in a PDF format on the server.
Does anyone know how I go about doing this?
I use CuteBuilder (formerly Trelix) to design the site.
bettyfordclinic
6-6-02, 09:42 AM
Javascript source is an easy way, but there are probably others:
Here's a direct link to a script:
http://javascript.internet.com/passwords/gatekeeper-in.html
Or check out the section in full:
http://javascript.internet.com/passwords/
bfc
To keep it simple I suggest you use .htaccess and .htpasswd files. These are the native application security provided my PowWeb servers. There has been a wealth of information exchanged in this form that you might subject matter searched. A good starting place:
http://ups.manninc.com/tutorials/index.php
Here:
<script>
var password;
var pass1= "your password";
password=prompt( ' Please enter your password ' ,' ' )
if (password!=pass1)
{
window.location=" Wrong_password.html "
}
</script>
Change your password Into the password you wanted it to
Change Please enter your password into what you wanted it to ask,
And chage Wrong_password.html into whatever you wanted to go where there is a wrong password...
Oh, and place this in the <head> section of your document....And click here to see an example
It is case-sensitive, and see an example here:
http://www.angelfire.com/empire/habibmaya/password.html
The U.P.S. site is no longer there as it has been purchased by PowWeb.
I think it is important to note that when you use javascript for your passwords, they are available in plain text to anybody willing to view source.
That's what I though too, you could see the password by viewing the source, but I could not view Habib's source. Not by right click or browser edit or... How were you able to see Habib's source.
If the password is in javascript (either an external .js file or right in the page), both are viewable.
your right but try:
http://www.angelfire.com/empire/habibmaya/password.html
It keeps the cursor busy and right click does not work.
Cinemashowdown
6-9-02, 11:38 PM
You can use www.Bravenet.com
They have a password gate.
You simply tell them the URL to the file and they will create and host the password protection on their servers.
Its fast, free an easy to set up (cut and paste code)
I actually paid for their ad-free service....its like $9.95/month but well worth it.
On our site we use their Mailing List, Chat Room and Password Gate.
Yah..but doesn't bravenet require a link back?
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.