Gmail 图片是通过 Google 的图片代理请求的,而不是打开电子邮件的用户的 IP

Gmail images are requested through Google's Image Proxy and not the IP of the user who opened the email

我注意到在 Gmail 中从我的服务器加载图像的所有请求都通过 IP 66.249.93.42

下的 Google 的图像代理服务

有什么方法可以知道发起请求的源IP是什么?我的服务器根据请求的来源国执行一些本地化逻辑 - 目前看来所有 Gmail 用户都 'physically' 位于加利福尼亚州山景城,而他们显然不在

根据 official Gmail blog,Gmail 将仅通过 Google 自己的代理服务器提供图像。他们这样做也是为了防止发件人获得收件人的 IP 地址。

Gmail serves all images through Google’s image proxy servers and transcodes them before delivery to protect you in the following ways:

Senders can’t use image loading to get information like your IP address or location.

但是,根据我的经验,如果收件人在 Outlook 或其他邮件客户端中检查他们的电子邮件,则在请求图像资产时会传递 IP 地址。