CAccessControlFilter throws CHttpException with error code "403" when an access is denied. If your errorHandler is configured that errorAction is "site/index", then you can modify SiteController as follows: