开发者

How to make requests from the client IP

开发者 https://www.devze.com 2023-04-01 23:33 出处:网络
I\'m developing a web application tha开发者_JS百科t parses a third party site and makes POST and GET requests to it.

I'm developing a web application tha开发者_JS百科t parses a third party site and makes POST and GET requests to it. Problem is that this will be used by different registered users and I need the requests not to come from the web server but from each client IP. I wanna make it in PHP/ajax. Is it possible to do this, basically avoid that all the requests come all from the same IP (being the web server that runs php)?

If not what do you suggest?


For security reasons, this is impossible.

To understand why, replace third party site with bank or company intranet.


When you implement the code on the client side using javascript and consume the thrid party app directly, you can do this. On the server side, there is of course no way to fake a IP that way.

0

精彩评论

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