htaccess creator (a safe folder creation tool)


I work a lot with SqLite databases which are really flexible and fast for my online programs but SqLite database is only a file which can be downloaded from any one who knows the folder address. To make such folders safe from being seen or executed we need to create .htaccess and .htpasswd files with administration user name and Password. For this purpose i made “htaccess creator” script in php to do the job on the fly.

follow instructions:

  1. Change permission of  your folder to 777
  2. Start the file accessFolder.php
  3. Type username and password
  4. Check what type of server you have: WIN or LINUX
  5. press “Create now

Now your data folder should have the 2 files .htaccess and .htpasswd