Thursday, April 30, 2015

Deny user agent strings Yii


array(
    'deny',
    'expression' => function(){
        return strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE;
    },
    'message' => "You're using the wrong browser, sorry.",
),