接收到cURL请求结束是否可以看到服务器IP地址? (云耀斑)
Can Server IP Address Be Seen On Receiving End Of cURL Request? (Cloudflare)
当使用 Cloudflare 时,我了解所有发出的请求我的服务器也不会看到我的服务器 IP 地址。
对于从我的服务器向任何 API 或 URL 发出的所有请求,这是否相同?
例如,假设我在 PHP 中使用 cURL,然后我向 Facebook 的 Graph API 发出请求...因为我的服务器使用的是 Cloudflare,FB 会看到请求来自 Cloudflare 的 IP 地址吗?
它不会看到我的服务器 IP? 或我服务器上的任何域名?
When using Cloudflare, I understand all requests made too my server
will not see my servers IP address.
如果您的网站启用了代理(橙云),那么可以。如果是 DNS-only,它将直接发送到您的服务器,您的 IP 将被暴露。
Is this the same for all requests made from my server to any API's or URL's?
For example, say I am using cURL within PHP, I then made requests to
Facebook's Graph API... Since my server is using Cloudflare, would FB
see the request came from Cloudflare's IP address?
It would not see my server IP? or any domain name on my server?
没有,Cloudflare is a reverse proxy, not a forward proxy (commonly known as HTTP proxy, or just proxy). When you do an API or cURL request, the host would see your server's public IP. If you wish to hide your server's IP, you could use a forward proxy service such as Smartproxy (good services are paid), or setup your own proxy using NGINX。
当使用 Cloudflare 时,我了解所有发出的请求我的服务器也不会看到我的服务器 IP 地址。
对于从我的服务器向任何 API 或 URL 发出的所有请求,这是否相同?
例如,假设我在 PHP 中使用 cURL,然后我向 Facebook 的 Graph API 发出请求...因为我的服务器使用的是 Cloudflare,FB 会看到请求来自 Cloudflare 的 IP 地址吗?
它不会看到我的服务器 IP? 或我服务器上的任何域名?
When using Cloudflare, I understand all requests made too my server will not see my servers IP address.
如果您的网站启用了代理(橙云),那么可以。如果是 DNS-only,它将直接发送到您的服务器,您的 IP 将被暴露。
Is this the same for all requests made from my server to any API's or URL's?
For example, say I am using cURL within PHP, I then made requests to Facebook's Graph API... Since my server is using Cloudflare, would FB see the request came from Cloudflare's IP address?
It would not see my server IP? or any domain name on my server?
没有,Cloudflare is a reverse proxy, not a forward proxy (commonly known as HTTP proxy, or just proxy). When you do an API or cURL request, the host would see your server's public IP. If you wish to hide your server's IP, you could use a forward proxy service such as Smartproxy (good services are paid), or setup your own proxy using NGINX。