我试图连接到一个卷曲网站,但它返回错误503。
我想也许网站封锁了我的IP。我为我的VPS购买了另一个IP,并将这个IP连接到该站点,但我仍然无法连接并且有同样的错误。
我查看cURL输出,并看到我的两个请求具有相同的主IP,但本地IP不同。
主IP不在我购买的IP列表中。主IP在cURL输出中代表什么?
Array (
[url] => http://adsl.tci.ir/
[content_type] => text/html; charset=UTF-8
[http_code] => 302
[header_size] => 366
[request_size] => 50
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.01543
[namelookup_time] => 0.004182
[connect_time] => 0.0057
[pretransfer_time] => 0.005737
[size_upload] => 0
[size_download] => 13458
[speed_download] => 872197
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => 0
[starttransfer_time] => 0.015135
[redirect_time] => 0
[redirect_url] => http://adsl.tci.ir/panel
[primary_ip] => 217.218.86.7
[certinfo] => Array ( )
[primary_port] => 80
[local_ip] => 185.208.174.63
[local_port] => 57646
)发布于 2019-03-08 10:44:16
本地IP对您来说是本地IP。也就是说,它是您的 IP地址。
主IP是您提出请求的IP。也就是说,adsl.tci.ir解析的就是IP。
[ ~ ] ➜ host adsl.tci.ir
adsl.tci.ir has address 217.218.86.7https://stackoverflow.com/questions/55061471
复制相似问题