URL Based Protection

Discussion in 'Setting-up protection' started by duward, Feb 23, 2007.

  1. duward

    duward New Member

    Joined:
    Feb 23, 2007
    Messages:
    1
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  3. sixmedia

    sixmedia New Member

    Joined:
    Mar 1, 2007
    Messages:
    9
    Hi there,

    Any chance of giving an example of how to do this? I can't see how you'd go about it from the manual. My needs are exactly the same as Dustin's (above).

    cheers

    Jim
  4. paulcerbone

    paulcerbone New Member

    Joined:
    Oct 23, 2006
    Messages:
    7
    I think Alex is saying to check to see if the page to be displayed is a protected page. If so, then echo out the protect include file.

    ex.

    PHP:
    //protect these fatherIDs
    $protect = array("12","17","23","39");

    if (
    in_array($_REQUEST['fatherID'],$protect)) {

          echo 
    "path/to/php/include/protect.php";  //replace this with the actual path to your PHP protect script.

    }




Share This Page