PHP设置本地的请求IP地址

$ipAddress = "xxx.xxx.xxx.xxx"; //Custom IP here
curl_setopt($ch, CURLOPT_HTTPHEADER, ["REMOTE_ADDR: $ipAddress", "HTTP_X_FORWARDED_FOR: $ipAddress"]);
posted @ 2023-04-28 13:15  青柚  阅读(78)  评论(0编辑  收藏  举报