Difference between #5 and #6 of
"Why do I get a 403 error when trying to use Gii?"

Revision #6 has been created by Steve Friedl on Jan 30, 2011, 7:06:18 PM with the memo:

Noted that Yii 1.1.6 essentially fixed this issue.
« previous (#5)

Changes

Title unchanged

"Why do I get a 403 error when trying to use Gii?"

Category unchanged

FAQs

Yii version unchanged

Tags unchanged

Gii, config

Content changed

[...]
```
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:
 
 
```php 
// If removed, Gii defaults to localhost only. Edit carefully to taste.
 
    'ipFilters'=>array('127.0.0.1','::1'),
 
```
 
so this FAQ may not be so frequent much longer.
6 0
5 followers
Viewed: 86 308 times
Version: 1.1
Category: FAQs
Tags: config, Gii
Written by: Steve Friedl
Last updated by: Steve Friedl
Created on: Dec 12, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history