开发者

Akamai Edgescape?

开发者 https://www.devze.com 2023-01-22 14:59 出处:网络
I was wondering if anyone has any links to on how to implement Akamai\'s Edgescape solution to get the zip code?I tried scouri开发者_运维问答ng the web for some sort of documentation from Akamai, but

I was wondering if anyone has any links to on how to implement Akamai's Edgescape solution to get the zip code? I tried scouri开发者_运维问答ng the web for some sort of documentation from Akamai, but couldn't find any docs online, thought I would ask here first before contacting them.


If you have an Akamai account and have access to the control panel (https://control.akamai.com/), here is a document where you will find the information you need : https://control.akamai.com/dl/customers/ESCAPE/EdgeScape_users_guide.pdf


This sounds like an apples and oranges question. If you're using a CDN, by design, a percentage of requests that would normally be directed at your web server will be offloaded by the CDN. Of the total number of requests, those that make it through can be configured to provide the "True IP" of the client if you prefer.

As of 04/12 this is configured by adding the optional "Edge Services General" feature to your config, then enabling the "True Client IP Header".

As a bonus feature, if you're a Rails shop I'd suggest changing the name of the header to "Client-IP". If you do so, Rails will automatically use this header to determine the real ip for the user. This works as of 3.2.x, as documented here in ActionDispatch:: RemoteIp

Note: Rails appends the HTTP_ to the header :)

0

精彩评论

暂无评论...
验证码 换一张
取 消