News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jonathan Snook's Blog:
Password Protecting Admin Functions in CakePHP
January 30, 2008 @ 09:31:00

Jonathan Snook has posted a helpful trick for CakePHP users out there looking to secure sections of their site away from "normal users" and keep it only in the hands of the admins.

I just wanted to document this for easy future reference but if you don't want to hook up a complex user adminstration with authorization components, you can simply specify that the admin path be password protected in either your .htaccess file or in your httpd.conf.

This method is actually one of the built-in methods Apache has for restricting access (http authentication) that he's placed on his "/admin" directory. Call htpasswd to create the password file and you're all set to go.

0 comments voice your opinion now!
cakephp framework password protect htaccess authentication http


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Announcing the December 2010 Zend Framework Bug-Hunt

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 6)

Amazon Web Services Blog: Version 2 of the AWS SDK for PHP (now with Guzzle)

SaniSoft Blog: Bugs & enhancements for Auth component in CakePHP v1.2 - Part 1

Debuggable Blog: Summary of CakeFest #3 - Berlin


Community Events





Don't see your event here?
Let us know!


release community framework deployment update language zendserver laravel symfony package podcast introduction tips library unittest opinion api install series interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework