#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    St. Petersburg, FL
    Posts
    21
    Rep Power
    0
    How do I prevent some one from accessing a password protected page in PHP3 by entering the complete URL (eg: http://www.somedomain.com/somepage.html

    I want to keep them out of somepage.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    St. Petersburg, FL
    Posts
    21
    Rep Power
    0
    Additional -

    Like the javascript document.referrer

    Tks

    Bill
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    24
    Rep Power
    0
    you can use this ....

    <?
    $referer = getenv("HTTP_REFERER");
    if(!$referer) {
    header("location: errorpage.html");
    exit;
    }
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    St. Petersburg, FL
    Posts
    21
    Rep Power
    0
    Is there some method where a number of files can be moved off to a hidden subdirectory or the users given permissions to a subdirectory based on valid login. Other wise they could see the hidden subdirectory?

    tkx

    bill

Similar Threads

  1. cache control still access secure page after logout
    By Germanjulian in forum PHP Development
    Replies: 0
    Last Post: February 17th, 2004, 07:04 AM
  2. access and web page help please
    By Lesley in forum Database Management
    Replies: 1
    Last Post: February 11th, 2004, 03:13 AM
  3. Replies: 0
    Last Post: February 8th, 2004, 11:11 PM
  4. passing the url from HTML page to a php
    By lordorkus in forum PHP Development
    Replies: 10
    Last Post: January 20th, 2004, 06:36 PM
  5. protecting a page from an authed user with low access?
    By thomas-uk in forum PHP Development
    Replies: 2
    Last Post: January 19th, 2004, 10:25 AM

IMN logo majestic logo threadwatch logo seochat tools logo