Checkout the security component.
http://api.cakephp.org/class/security-component#method-SecurityComponentrequireLogin

Htpasswd/htaccess will not work normally due to the mod_rewrites

On Oct 2, 11:36 am, "llyn.g...@gmail.com" <llyn.g...@gmail.com> wrote:
> It's easy to lock down an entire cake application by specifying a
> AuthUserFile for the directory that contains the .htaccess for your
> cake application.  But, I'd like to lock down a particular component
> (particularly all it's views).  Any attempt to lock it down either by
> adding an .htaccess file that specifies a AuthUserFile to particular
> view directory, or setting it for the particular view directory in the
> Apache httpd.conf, fails.  No error, and there is no access
> protection.
>
> I know I could use the Auth component, however, this is just a small
> admin feature that is not user facing, but that I don't want exposed
> to teh world.  Something htpasswd does well.
>
> Thanks
> Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to