jpablobr.com

→ how to password protect your website during development with htaccess in cakephp

More on: cakephp, htaccess, Wed Jul 14 23:49:35 -0600 2009

For CakePHP-Users: - Modify the .htaccess in /app/webroot/ - add something like that at the beginning 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 in /app/webroot/ and drop something like this in:

 admin:PASSWORD 

The "PASSWORD" is a transformed version of your real password, I created it with this tool: http://tools.dynamicdrive.com/password/

blog comments powered by

Disqus