SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Peterborough, Ontario, Canada
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can anyone tell me the best way to build a password function that only allows those who know the password to view certain pages?

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out this link: http://htmlhq.tripod.com/generator/index.htm


    I have been told that the script is excellent and hard to break.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 1999
    Location
    On the road
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the .htaccess-file to protect files or directories, if you are hosted on apache.
    Check out this article .htaccess.

    Johannes

    ------------------
    Creative Webdesign
    JBBdesign

  4. #4
    SitePoint Member
    Join Date
    May 2000
    Location
    Peterborough, Ontario, Canada
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - I've got that working and its very interesting. It uses javascript in the 'password entry' & 'target pages' AND also some javascript 'cookie' stuff in another page AND an external javascript file called 'jslibrary.js' which all work together to make it happen.

    However, is it the common way to do password stuff? Is it not CGI/server side stuff? If so, does anyone know how to do that - or know of a source/tutorial?

  5. #5
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, JavaScript is probably not the normal way to do it, but if you don't have access to CGI then it is the next best thing. Check out this site for some CGI resources:

    http://www.cgi-resources.com/

  6. #6
    SitePoint Zealot Tiger_Tom's Avatar
    Join Date
    Feb 2000
    Location
    U.K.
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The most common way is with a .htaccess file on Unix, or a 'dafauth.txt'(?) file on NT, I think.

    See http://www.superscripts.com/tutorial/htaccess.html

    for a tutorial.

    If you ever want to know about any web-related subject, use a search engine! There are lots of tutorials on web-related topics out there, for obvious reasons.
    http://www.ask.com is good, as well as http://www.google.com, and the old reliable http://www.altavista.com, which indexes almost everything.

    TigerTom 0~> http://www.tigertom.com



  7. #7
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have found that HotBot, which is reported to have the largest database of any search engine available (40% of the Internet), provides some of the best results when looking for technical information.

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •