简体   繁体   English

如何将用户的 IP 重定向到网站 IP?

[英]How to redirect user's IP into a website IP?

I have some info at Amazon server, but access to this info can be made just with my website IP. How to redirect users IP into a web site IP when they using a link to the info at my site?我在亚马逊服务器上有一些信息,但只能通过我的网站 IP 访问此信息。当用户使用我网站上的信息链接时,如何将用户 IP 重定向到 web 网站 IP?

Site hoster is iPage, platform Wordpress.网站主办方是 iPage,平台 Wordpress。

You can't.你不能。 If the user makes the request, it will be their computer that makes the connection, thus it will be their IP.如果用户发出请求,则将是他们的计算机进行连接,因此这将是他们的 IP。

The solution is to not make the user do the request, but to make the request yourself.解决办法不是让用户做请求,而是自己做请求。 You fetch the webpage at amazon (using curl, wget, ...) and display the information to the user on your site.您在亚马逊获取网页(使用 curl、wget 等)并向您网站上的用户显示信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何防止用户访问 GCP 中托管的网站的 IP 地址? - How to prevent user access to IP address for a website hosted in GCP? 网站上的 IP 与 aws 实例中的 IP 不同 - IP on website differing from IP in aws instances 如何在我的 Cloud-Run Flask 应用程序中获取用户的 IP 地址? - How can I get the user's IP-Address in my Cloud-Run Flask app? GCP 负载均衡器不会将它自己的 ip 重定向到域 - GCP load balancer does not redirect it's own ip to domain 从 firebase 身份验证触发器获取用户的 IP 地址? - Get user's IP address from firebase auth trigger? 如何按域、域的 IP 或 GKE 入口 IP 限制 GCP 负载均衡器访问? - How do I restrict GCP load balancer access by domain, domain's IP or GKE ingress IP? Azure传送门:Application Insights——如何识别请求者的IP地址 - Azure Portal: Application Insights - How to Identify Requestor's IP Address 如何指定 GCP 数据流的 IP 号? - How can I specify the IP number of GCP's Dataflow? gke中如何使用外网IP - How to use external IP in gke 检查 IP 是否命中 Azure 负载均衡器 - Check IP's hitting Azure load balancer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM