| | 122 | # |
|---|
| | 123 | # Security note: Be aware that since remote_ip will check regular HTTP headers, |
|---|
| | 124 | # it can be tricked by anyone setting those manually. In other words, people can |
|---|
| | 125 | # pose as whatever IP address they like to this method. That doesn't matter if |
|---|
| | 126 | # all your doing is using IP addresses for statistical or geographical information, |
|---|
| | 127 | # but if you want to, for example, limit access to an administrative area by IP, |
|---|
| | 128 | # you should instead use Request#remote_addr, which can't be spoofed (but also won't |
|---|
| | 129 | # survive proxy forwards). |
|---|