How to Protect Functions in CakePHP

If you don’t want to implement complex user administration with authorization components for you application then you can simple protect your secret functions by using .htpasswd file.

I am just giving an example for admin function.

Add the below lines on your apache virtual host configuration

Now you required user name and password to access your admin function.

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply