How can I password protect my site during development using htaccess in Cakephp?
- Which htaccess file do I need to change?
- what i need to write in htaccess
- where do i put .htpasswd?
I searched on Google for this, but did not find anything useful, I hope you could help me!
Thanks until it helped me solve the problem!
For CakePHP users: - Change .htaccess to / app / webroot / - add something like this to the top of the .htaccess file:
AuthName "Restricted Area" AuthType Basic AuthUserFile /complete/path/to/.htpasswd AuthGroupFile /dev/null require valid-user
Now create the .htpasswd-file file in / app / webroot / and put something like this in:
admin:PASSWORD
"PASSWORD" is a converted version of your real password, I created it using this tool: http://tools.dynamicdrive.com/password/
I think there are many ways to create this, but it worked for me, and maybe it helps other cakephp users.
passwords password-protection cakephp .htaccess .htpasswd
Christian strang
source share