$ipAddress = "xxx.xxx.xxx.xxx"; //Custom IP here curl_setopt($ch, CURLOPT_HTTPHEADER, ["REMOTE_ADDR: $ipAddress", "HTTP_X_FORWARDED_FOR: $ipAddress"]);