I have installed my program in folder http://www.domain.com/amember How do I protect root folder that contains all the files or webpage? So when a user enters http://www.domain.com Ask for the box Login and Password Thanks
If your domain is http://www.domain.com/index.php, all you need to do is add the following code to the index.php file: Code: <?php $_product_id = array(1,3); // or $_product_id = array(1) if it so include("/var/www/username/web/amember/plugins/protect/php_include/check.inc.php"); .. your existing PHP code goes here ?>
Yes but even better you need to move all files to any folder and protect it. Then create index file that will redirect user to that folder: <?php header("Location: /url/"); exit; ?>