@todo write description
First, add this plugin as a requirement to your composer.json
:
{
"require": {
"cakephp/security": "*"
}
}
And then update:
php composer.phar update
That's it! You should now be ready to start configuring your channels.
$ cd /app
$ git submodule add git://github.com/gourmet/security.git Plugin/Security
$ cd /app/Plugin
$ git clone git://github.com/gourmet/security.git
You need to enable the plugin your app/Config/bootstrap.php
file:
CakePlugin::load('Security');
If you are already using CakePlugin::loadAll();
, then this is not necessary.
You will also need to define some Configure
key/value sets in your bootstrap.php
,
config.ini
or config.json
. Create your own honey pot
or get a QuickLink to start
taking part in the community.
<?php
Configure::write('Security.HttpBL.apiKey', 'your_api_key');
Configure::write('Security.HttpBL.honeyPot', '/your_honey_pot.php');
[Security.HttpBL]
apiKey = your_api_key
honeyPot = /your_honey_pot.php
{
"Security": {
"HttpBL": {
"apiKey": "your_api_key",
"honeyPot": "/your_honey_pot.php"
}
}
}
Add honey pots URLs to your layout and/or views after obviously adding the helper to your controller(s):
<?php
echo $this->HoneyPot->render();
- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches
http://github.com/gourmet/security/issues
Copyright 2013, Jad Bitar
Licensed under The MIT License
Redistributions of files must retain the above copyright notice.