简体   繁体   中英

How does rails get http header data from CloudFlare

Hope it won't take too much time. I am very new to RoR. Here is the question: How can I get HTTP_CF_IPCOUNTRY from my rails app if my cloudflare has been configured correctly?

I know it is very naive. But pls help me out.

Many thanks.

我相信您应该可以使用:

request.headers["HTTP_CF_IPCOUNTRY"] 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM