[openstreetmap-website] Can't register with ipflood (#984)
Mister Hat
notifications at github.com
Sat Jun 6 10:26:29 UTC 2015
Setting both the X-FORWARDED-FOR and CLIENT-IP at the same time (which [ipFlood](https://addons.mozilla.org/en-US/firefox/addon/ipflood/) does) results in an HTTP 500.
Here is a demonstration with curl:
```
$ curl -I -H "X-FORWARDED-FOR: 235.83.227.142" -H "CLIENT-IP: 253.83.227.142" https://www.openstreetmap.org/user/new?cookie_test=true | head -n1
HTTP/1.1 500 Internal Server Error
$ curl -I -H "CLIENT-IP: 253.83.227.142" https://www.openstreetmap.org/user/new?cookie_test=true | head -n1
HTTP/1.1 200 OK
$ curl -I -H "CLIENT-IP: 253.83.227.142" https://www.openstreetmap.org/user/new?cookie_test=true | head -n1
HTTP/1.1 200 OK
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/984
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150606/3b757bc4/attachment.html>
More information about the rails-dev
mailing list