"Simple" password protection?

This is a discussion on "Simple" password protection? within the Net Objects Fusion forums in Application Servers & Tools category; Hi, I'm looking for the simplest way to password protect a single page on a website. A single password for all users is good enough. I've seen some info on using " .htaccess", am I looking in the right direction? Any suggestions or links to a tutorial that will help? Thanks, Iva...

Go Back   Application Development Forum > Application Servers & Tools > Net Objects Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-10-2004, 11:52 AM
BKOS
Guest
 
Default "Simple" password protection?

Hi,

I'm looking for the simplest way to password protect a single page on a
website. A single password for all users is good enough.

I've seen some info on using " .htaccess", am I looking in the right
direction? Any suggestions or links to a tutorial that will help?

Thanks,

Iva


Reply With Quote
  #2  
Old 08-10-2004, 11:56 AM
Mark Reed
Guest
 
Default Re: "Simple" password protection?

yes - htaccess is the way to go. Check with your hosting provider - many
of them have a control panel option that allows you to set this.





--
Mark M. Reed (mreed@fusionmagic.com)
FusionMagic - building better designs...pixel by pixel

Sign up for your FREE Fusion newsletter!
Incredible Fusion template collections at a great price!


Visit: http://www.fusionmagic.com
Reply With Quote
  #3  
Old 08-10-2004, 02:18 PM
Ron
Guest
 
Default Re: "Simple" password protection?

Here's a script I've had luck with the #signs are just separators remove
them.
Put this in a text box throught the HTML window.

################################################## ####

<script language="JavaScript">

var password ="mypassword"; //set this to the desired string

var pd="";

pd=prompt("You are about to enter a restricted zone. Password:","");

if(pd!=password)

{

alert("Invalid password");

history.back();

}

else

{

alert("Password accepted");

}

</script>
###########################################
"Mark Reed" <mreed@fusionmagic.com> wrote in message
news:Xns9541798C25F8Dmreedfusionmagiccom@64.69.219 .245...
> yes - htaccess is the way to go. Check with your hosting provider - many
> of them have a control panel option that allows you to set this.
>
>
>
>
>
> --
> Mark M. Reed (mreed@fusionmagic.com)
> FusionMagic - building better designs...pixel by pixel
>
> Sign up for your FREE Fusion newsletter!
> Incredible Fusion template collections at a great price!
>
>
> Visit: http://www.fusionmagic.com



Reply With Quote
  #4  
Old 08-10-2004, 02:43 PM
Mark Reed
Guest
 
Default Re: "Simple" password protection?

that script will work, however be aware it looks to use plain text
password and anyone viewing the source will see it.

htaccess is fairly secure and keeps the passwords hidden, and is very
easy to setup.

another approach is to use something like: http://www.coffeecup.com/java-
password/ which is slightly more secure than a script alone. This one
allows you to have multiusers with multidestination sites - however it is
very insecure and can be circumvented by even the lowest skilled "wander"

I think you will find htaccess suitable for most cases of protecting a
single page.



--
Mark M. Reed (mreed@fusionmagic.com)
FusionMagic - building better designs...pixel by pixel

Sign up for your FREE Fusion newsletter!
Incredible Fusion template collections at a great price!


Visit: http://www.fusionmagic.com
Reply With Quote
  #5  
Old 08-10-2004, 02:46 PM
turtle «gotFusion / NOF-Club»
Guest
 
Default Re: "Simple" password protection?

...
If you want to hide this script you can copy it to notepad and save it as...
oh something other than password.js (save using the extension js by
selecting all files from the notepad drop down file options) then instead of
giving all of your site visitors the password (that they can see if they
just view your page source) you can do a script call (inserted the same way)
using something like:

<script language="JavaScript" src="./hubba-hubba.js"></script>

Make sure that your password script file is in the same folder as the page
that you want to use it on. Still not top security but buried a little
deeper so that the average joe web surfer won't be able to just look at it.

--
Mike - (a.k.a. turtle) - gotFusion Extended Support
Committed to helping you build better websites

For additional help & resources visit the experts at:
http://www.gotFusion.com - http://nof-club.de


Ron said::
.....
| Here's a script I've had luck with the #signs are just separators
| remove them.
| Put this in a text box throught the HTML window.
|
| ################################################## ####
|
| <script language="JavaScript">
|
| var password ="mypassword"; //set this to the desired string
|
| var pd="";
|
| pd=prompt("You are about to enter a restricted zone. Password:","");
|
| if(pd!=password)
|
| {
|
| alert("Invalid password");
|
| history.back();
|
| }
|
| else
|
| {
|
| alert("Password accepted");
|
| }
|
| </script>
| ###########################################
| "Mark Reed" <mreed@fusionmagic.com> wrote in message
| news:Xns9541798C25F8Dmreedfusionmagiccom@64.69.219 .245...
|| yes - htaccess is the way to go. Check with your hosting provider -
|| many of them have a control panel option that allows you to set this.
||
||
||
||
||
|| --
|| Mark M. Reed (mreed@fusionmagic.com)
|| FusionMagic - building better designs...pixel by pixel
||
|| Sign up for your FREE Fusion newsletter!
|| Incredible Fusion template collections at a great price!
||
||
|| Visit: http://www.fusionmagic.com




Reply With Quote
  #6  
Old 08-10-2004, 07:51 PM
Ron
Guest
 
Default Re: "Simple" password protection?

Yes the script is ordinary text but you can't view the source unless you
know the password to let the page load.
Explorer User Prompt will block page load until pass is entered.
I have only used this in MS Windows.


"Mark Reed" <mreed@fusionmagic.com> wrote in message
news:Xns954195C379206mreedfusionmagiccom@64.69.219 .245...
> that script will work, however be aware it looks to use plain text
> password and anyone viewing the source will see it.
>
> htaccess is fairly secure and keeps the passwords hidden, and is very
> easy to setup.
>
> another approach is to use something like: http://www.coffeecup.com/java-
> password/ which is slightly more secure than a script alone. This one
> allows you to have multiusers with multidestination sites - however it is
> very insecure and can be circumvented by even the lowest skilled "wander"
>
> I think you will find htaccess suitable for most cases of protecting a
> single page.
>
>
>
> --
> Mark M. Reed (mreed@fusionmagic.com)
> FusionMagic - building better designs...pixel by pixel
>
> Sign up for your FREE Fusion newsletter!
> Incredible Fusion template collections at a great price!
>
>
> Visit: http://www.fusionmagic.com



Reply With Quote
  #7  
Old 08-14-2004, 04:00 PM
Leroy Schulz
Guest
 
Default Re: "Simple" password protection?

Look at the free SiteProtector component by Apollon:
http://www.apollon.de/Components/

I've used it on a couple of sites.

[L]



"BKOS" <nospam@nowhere.com> wrote in message
news:cfar0j$ce45@news01.netobjects.com...
> Hi,
>
> I'm looking for the simplest way to password protect a single page on a
> website. A single password for all users is good enough.
>
> I've seen some info on using " .htaccess", am I looking in the right
> direction? Any suggestions or links to a tutorial that will help?
>
> Thanks,
>
> Iva
>
>



Reply With Quote
  #8  
Old 09-22-2004, 11:16 AM
Martin
Guest
 
Default Re: "Simple" password protection?

There is a program I use and Ive been very happy with it. Its pretty
inexpensive to!
I use it because it allows you to keep a database of all the users and
update them as needed.
Here is my prtected page
http://www.starlightdigitalstudios.c...mber_area.html
Checkit out www.minihttpserver.net

Martin

"BKOS" <nospam@nowhere.com> wrote in message
news:cfar0j$ce45@news01.netobjects.com...
> Hi,
>
> I'm looking for the simplest way to password protect a single page on a
> website. A single password for all users is good enough.
>
> I've seen some info on using " .htaccess", am I looking in the right
> direction? Any suggestions or links to a tutorial that will help?
>
> Thanks,
>
> Iva
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:05 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.