I'm using Yii 1.1.16, and am trying to add an accessRules to filter by IP
This is my code in my CommentsController. It still allows my localhost IP to access the action. Other than my actions, this is the only other function in my controller.
What am i missing or doing wrong? Thanks
public function accessRules() {
return array (
array ('allow', // allow all users to perform these actions
'actions' => array ( 'Comments' ),
'ips' => array(
/*"127.0.0.1",*/ /* localhost */
/*"::1",*/ /* localhost */
"52.XX.XX.XX" //live site
)
),
);
}