Make the Advanced Analytics compatible with Cloudflare#569
Make the Advanced Analytics compatible with Cloudflare#569Tchekda wants to merge 2 commits intocydrobolt:masterfrom
Conversation
|
This needs to be a config option. If it can't be turned off, then Polr administrators who do not deploy Polr behind a reverse proxy are left vulnerable to forged |
Fair point, will think about that. The project looks a bit dead, don't think I will make a new PR to add that |
With the previous code, the Geoip service was using the Request IP.
In most of the case that works well but if the website is behind CloudFlare, the IP will be the proxy one.
Now it determines user's real IP if behind cloudflare or not. Fixes #499 #491
Tell me if you think something needs to be ajusted.