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.
- Change permission of your folder to 777
- Start the file accessFolder.php
- Type username and password
- Check what type of server you have: WIN or LINUX
- press “Create now“
Now your data folder should have the 2 files .htaccess and .htpasswd