php仅允许站内访问

<!--markdown--> $fromHost = array(

'blog.shenchenglin.cn',
'localhost',
'127.0.0.1'
);
$s = 'https://blog.shenchenglin.cn';
$urlArr = parse_url($s);
$host = isset($urlArr['host'])?    
$urlArr['host']:'';
$host =    strtolower(str_ireplace('www.','',$host  ));
echo $host.'-->';
提交 下一篇:解决curl中https请求报错