I'm dealing with Flight Search API for my clients. I want to restrict some client requests from some IP Address who didn't registered with me. All the IP Addresses of my clients I will save them in a DB.
Now a user sent me a RAW HTTP POST jSON data to my server.
How do i get the IP address of that client who sent me a RAW HTTP POST JSON Data ?
$_SERVER['REMOTE_ADDR'] for the ip address of the requestor
This is totally unrelated from curl... so use this when curl is used and a request is done to your php where you are about to process the request done by curl