Instead of disabling the warning, it might be better to fix the real problem. Here I rephrase what Rails tells you:
This request seems to have gone through two different reverse proxies. One of them sets the CLIENT_IP header to the CLIENT_IP 's IP address; the other is the X_FORWARDED_FOR header. One of these values ββis probably correct, the other probably contains the reverse proxy IP, and I cannot say what it is. I cannot reliably determine this IP address of the user, so I will reject the request.
The βrightβ solution is to stop tuning both headers. To do this, you will need to track where they come from (I would start with your Bluecoat device) and find out if both of them are needed. Usually you use only one or the other.
If it turns out that both of them are necessary (I saw unfamiliar things), then you will need to find out which header is given first (provided that there are two proxies in the chain). You can then write your own middleware that will remove the other HTTP header.
See the Rails 3 middleware request headers for pointers on how to create your own middleware. Paste it in front of the RemoteIp middleware, clear which of the headers has a βbadβ value, and you should be good.
source share