Website authentication help

Discussion in 'PHP' started by jlh, Aug 7, 2006.

  1. #1
    I cross-posted this elsewhere. I'm trying to implement a very basic "intranet" onto my company's current website. I am trying to put in place a very basic level of authentication (one username and password that everyone can use). I have found the code to actually restrict access to each individual page. The problem I am having now is restricting access to not only web pages, but any word document, pdf files, etc,.

    Obviously I'm going to have to restrict access to the directory itself, but I'm not sure how to do this. Any help (and code samples!) would be greatly appreciated! Thanks. :)
     
    jlh, Aug 7, 2006 IP
  2. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    coderlinks, Aug 8, 2006 IP