| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| ... 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 > > |
|
#8
| |||
| |||
| 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 > > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.