I am new in yii framework. In my site gii shows the error
Error 403 You are not allowed to access this page.
I set the gii in the config file like this
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'test123',
'ipFilters'=>array('192.168.0.101','127.0.0.1','::1'),
),
still it show the error
To fix this, look in your main config file for the modules section for Gii, and add an
ipFilters array that includes your own IP:
// protected/config/main.php
return array(
The ipFilters property can include as many items as you like, and they can be straight
IP addresses or wildcards such as "192.168.1.*".
IPv6 addresses are supported as well if the underlying platform supports it, and "::1"
represents localhost (which may be required in some configurations).
Be careful not to open Gii to a too-wide audience lest it become a security risk.
Note: Yii 1.1.6 adds the default filter directly to the stock config file:
// If removed, Gii defaults to localhost only. Edit carefully to taste.
hope solved your problem..