NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Protecting your Web site from prying eyes requires a server-side solution
14836 Protecting your Web site from prying eyes requires a server-side solution http://www.ddj.com/documents/s=2715/nam1012432119/index.html 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"). JavaScript > Tips and Tutorials > User Authentication Oct 12, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  



Other links at JavaScript > Tips and Tutorials > User Authentication
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").
Category:




Main Category
178
2033
792
284
174
1802
1113
905
1157
7350
70
898
59
2185
172

Join Mailing List
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.



Top 10
Directory Statistics

Links: 19152
Categories: 1275
Registered Users: 692
Mailing List Subscribers: 2041
Unique Outgoing Hits: 220349

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
36 site(s)
PR 7
289 site(s)
PR 6
829 site(s)
PR 5
2006 site(s)

PHP News