Page 1 of 1

w3easyProtect Manual

PostPosted: 07.12.2011 14:28
by admin
(C) 2011 Joachim Haack,

PHP 5 (maybe also PHP 4 will do), NO DATABASE required.

GNU General Public License, Version 3

With the w3easyProtect script you can easily protect any directory on your webspace with the secure server sided .htaccess protection. w3easyProtect will create a .htaccess file and a .htpasswd file to password protect the folder against access from outside the server.

First unpack and then upload the script folder to your webspace.
Make sure that only you have access to the scriptfolder (if the folder is not yet protected, you should do it right now with this script).
Make sure that you have permission to edit the config file (depending on your server settings chmod file to 0666, 0664 or 0644 if necessary.)

Open the index.php and submit the form with checked 'show config' radio button. Specify the config settings as discribed there. I'd recommend to set the $overwrite_protect setting to 'on' for the beginning. You may change it later, if you like.
Now save your settings by submitting the form with checked 'edit file' button and close the config file by pressing the 'reset button'.

Select the directory you want to protect with the 'Select folder' button. Don't forget to press the 'submit button' after selection. Next to the 'Select folder' button the name of the actually selected folder appears.
Make sure the script has permission to create files in the folder (depending on your server settings chmod folder to 0777, 0775 or 0755 if necessary).
To protect the folder, change the user and the password in the resp. fields to your values (the default values won't do). Then check the 'protect' radio button and press 'submit'. Now the script will create the .htaccess file and the .htpasswd file.
If there is already a .htaccess file and/or a .htpasswd file in the directory and the '$overwrite_protect' setting is not set to 'off', the script will name the new files .htaccess.TXT and/or .htpasswd.TXT to not delete the maybe important informations stored in the original files.
If this happens, open one of the newly created files by using the 'select file' button and copy the content with the tabs 'ctrl' and 'c'. Afterwards open the original file and decide to keep or not to keep the content and paste the content of the newly created file above or below resp. instead of the former content to the file.
Then check the 'edit file' button and save your changes by pressing the 'submit' button.
Afterwards delete the not any more needed files .htaccess.TXT and/or .htpasswd.TXT. For this purpose a red 'delete' button will appear as long as the selected folder contains any .htaccess or .htpasswd or .htaccess.TXT or .htpasswd.TXT file.

That's it!

(Btw: With this tool you may also edit other files of your site. But we'd recommend for this purpose the more comfortable tools w3easyEditor or w3easyAdmin.)

Have fun and take it w3easy & zorry for my bad English...;)