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.
精彩评论