最近短链接项目,完成后发现很多域名都是标红的,在网上找了很多查询接口,有一些接口有很多滞后性,查不到最新的状态。有时候域名标红一会儿就放出来了,当时就是无法在微信内打开,状态正常后就可以了。
为了查询状态的时效性,选了十几个站后最后选定了变色龙云的接口。
放出批量测试域名的代码。
<html>
<h2 class="h2">域名批量检测</h2>
<div id="up">
<form class="box" action="/index/index/checktxtpost" method="post" enctype="multipart/form-data">
<input id="key" class="key" type="text" name="text" placeholder="用户key" value="">
<br/>
<br/>
<br/>
<input id="filebtn" class="filebtn btn" onclick="choosefile()" value="选择txt文件">
<input id="file" class="file" type="file" onchange="readfilename(this)" name="file" accept=".txt"/>
<br/>
<br/>
<br/>
<input id="submit" class="btn" type="button" value="提交">
</form>
</div>
<br/>
<br/&