<?php
header('Content-Type:application/json; charset=utf-8');
$key = '';
$domain = $_GET['domain'];
$name = $_GET['nmae'];
$type = $_GET['type'];
$url = urldecode(base64_decode('aHR0cHMlM0ElMkYlMkZhcGkub29vbW4uY29tJTJGYXBpJTJGaWNw'));
$postdata = [
'apiKey' => $key,
'domain' => $domain,
'name' => $name,
'type' => $type
];
echo OooMn($url,$postdata);
function OooMn($url,$postdata)
{
$postdata = http_build_query($postdata);
$opts = array(
'http' => array(
'method' => 'POST',
'user_agent'=> $_SERVER['HTTP_USER_AGENT'],
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata,
'timeout' => 60
)
);
$context = stream_context_create($opts);
return file_get_contents($url,false,$context);
}
使用方法:
把源码保存到icp.php,然后访问“域名/icp.php?domain=查询域名”即可。