Reputation: 115
I've a very basic tool (for educational purposes) where someone can input string, the tool uses cURL (data sent using AJAX) to bring response data from 3rd party API.
So, my question is, is there any way I can use the user's IP (I'm already getting the user IP using https://api.ipify.org
for other personalization purpose in the tool) as a Proxy IP in cURL.
If yes, which port do I have to use (port 80
)?
Edit: Here's what I exactly want to do:
CURLOPT_PROXY
field in the curl_setopt
. Is this possible?(I'm already sending the Client's IP to my PHP page (using AJAX) for some other part of server code)
Upvotes: 0
Views: 745
Reputation: 2205
No It's that simple answer.. A major security threat. Would you like if some one uses your IP to DDOS CIA.
Upvotes: 3