[英]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.