Protecting your Web site from prying eyes requires a server-side solution
14836Protecting your Web site from prying eyes requires a server-side solutionhttp://www.ddj.com/documents/s=2715/nam1012432119/index.htmlThere are a few scripts out there that are written for just this purpose, but most seem to have some type of drawback. Many will only protect one page at a time?the password for the page becomes the page's URL, and if you get it wrong, you get a "Page Not Found" error. You would have to give out a number of passwords if you wanted people to be able to navigate your site with such a system. Some scripts only protect at the home page and nowhere else, so if someone happens to surf to a subpage via a search engine, the protection has been completely bypassed. When a friend of mine asked me if there were some way of password protecting her club's Web site, I came up with a way that was a little more user-friendly and not quite so simple to defeat for the average amateur. Once you set up the "front door," adding password protection is as easy as pasting in a couple lines of code into the files you want to protect (see working demo?password is "swordfish").JavaScript > Tips and Tutorials > User AuthenticationOct 12, 2006
There are a few scripts out there that are written for just this purpose, but most seem to have some type of drawback. Many will only protect one page at a time?the password for the page becomes the page's URL, and if you get it wrong, you get a "Page Not Found" error. You would have to give out a number of passwords if you wanted people to be able to navigate your site with such a system. Some scripts only protect at the home page and nowhere else, so if someone happens to surf to a subpage via a search engine, the protection has been completely bypassed. When a friend of mine asked me if there were some way of password protecting her club's Web site, I came up with a way that was a little more user-friendly and not quite so simple to defeat for the average amateur. Once you set up the "front door," adding password protection is as easy as pasting in a couple lines of code into the files you want to protect (see working demo?password is "swordfish").
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.