Protect single files or pages ..how?

Discussion in 'Setting-up protection' started by alminc, Mar 12, 2007.

  1. alminc

    alminc New Member

    Joined:
    Nov 15, 2006
    Messages:
    9
    I have so far learned only to protect folders using mode_rewrite.
    Please someone tell me how to protect :
    particular html page
    particular php page
    particular .zip file within a folder

    Thanks
    Almin
  2. dynamicm

    dynamicm New Member

    Joined:
    Feb 24, 2007
    Messages:
    36
    To protect your zip files I suggest you buy the onetime download plug-in.

    Then change the pages you want to protect from htm, html to php format then add this code. PLEASE NOTE THIS IS EXAMPLE HOW IT WORK.

    The feild call array are your Product number's you setup in aMember for example , array(2) so any who sign for this Product #2 can see that page only.

    <?
    $_product_id = array(2,3,4);
    include"/home/username/public_html/amember/plugins/protect/php_include/check.inc.php";
    ?>
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Almin,
    it is actually easier to move file into a separate folder than customize .htaccess for it.

Share This Page