Extension check IP in global anti-spam database http://www.projecthoneypot.org
- Register on http://www.projecthoneypot.org
- Go to Services - HTTP Black List - Enter capcha - get your http:BL Access Key
- Copy HoneyPot path to your extension path
- Add to config: 'components'=>array( 'honeypot' => array( 'class' => 'application.extensions.HoneyPot.HoneyPot', 'access_key'=>'YOUR-ACCESS-KEY' ), ..... )
$result=Yii::app()->honeypot->check($ip);
Check ip in Honeypot database. Return true if IP didn't exists and false if ip found. To view information about blocked ip see this page http://www.projecthoneypot.org/ip_{IP} (replace {IP}). $ip is optional, by default it's $_SERVER['REMOTE_ADDR'].