diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-02-04 22:40:20 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-02-04 22:40:20 +0100 |
commit | c59722885288a8af90392b8019b415dd84229775 (patch) | |
tree | ac50b503725063df0b386fca0bc6989f0a87283c /system/application | |
parent | 149ca0820ef2fe3df34e023a109b4e72dbb4899d (diff) |
added proxy_ips config item to whitelist reverse proxy servers to use the HTTP_X_FORWARDED_FOR header safely to determine the visitor's IP address
Diffstat (limited to 'system/application')
-rw-r--r-- | system/application/config/config.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/application/config/config.php b/system/application/config/config.php index 58309d830..fae962e95 100644 --- a/system/application/config/config.php +++ b/system/application/config/config.php @@ -311,6 +311,19 @@ $config['time_reference'] = 'local'; $config['rewrite_short_tags'] = FALSE; +/* +|-------------------------------------------------------------------------- +| Reverse Proxy IPs +|-------------------------------------------------------------------------- +| +| If your server is behind a reverse proxy, you must whitelist the proxy IP +| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR +| header in order to properly identify the visitor's IP address. +| Comma-delimited, e.g. '10.0.1.200,10.0.1.201' +| +*/ +$config['proxy_ips'] = ''; + /* End of file config.php */ /* Location: ./system/application/config/config.php */
\ No newline at end of file |