How can I password protect my website during development with htaccess in Cakephp?
which htaccess file do I have to change?
what do I have to write in the htaccess
where do I put the .htpasswd?
I searched google for that but couldn(t find anything useful, I hope you could help me!
Thanks Till that helped me solve the problem!
- Modify the .htaccess in /app/webroot/
- add something like that at the beginning of the .htaccess-file:
AuthName "Restricted Area"
Now create the .htpasswd-File in /app/webroot/ and drop something like this in:
The "PASSWORD" is a transformed version of your real password, I created it with this tool: http://tools.dynamicdrive.com/password/
I think there are much more ways to create this, but for me it worked and maybe this helps other cakephp users too.
posted date: 2009-04-14 03:11:00