天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

php whois查詢API制作方法

這里我們從萬網或新網的數據接口取得數據,透過php的簡單文本處理再輸出。
復制代碼 代碼如下:
<php?
$domain = $_GET['q'];
preg_match("|
<div class="/"lyTableInfoWrap/"">(.+?)</div>
|is", @file_get_contents('http://www.xinNET.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois='.$domain.'&noCode=noCode'), $whois);
echo $whois[1];
?>

做到這里,可能有的朋友要問了,這不就是簡單的php腳本么?!哪是api接口阿;接著我們來加工一下,讓查詢方式更專業一些:
我們需要的查詢格式如下:
http://api/whois/baidu.com
其中baidu.com是需要查詢的域名
可以修改nginx的配置來實現這一點:
復制代碼 代碼如下:
location ~* /whois/(.+)$ {
proxy_pass http://127.0.0.1:8080/whois/index.php?q=baidu.com
#將查詢傳遞給內網的apache處理
}

ok,至此一個使用的whois api接口完成了,你可以自己的程序中調用,也可以共享給大家使用^_^!。
查詢baidu.com的結果:
Whois Server Version 2.0
Domain names in the .com and .NET domains can now be registered
with many different competing registrars. Go to http://www.internic.NET
for detailed information.
Domain Name: BAIDU.COM
Registrar: REGISTER.COM, INC.
Whois Server: whois.register.com
Referral URL: http://www.register.com
Name Server: DNS.BAIDU.COM
Name Server: NS2.BAIDU.COM
Name Server: NS3.BAIDU.COM
Name Server: NS4.BAIDU.COM
Status: clientTransferProhibited
Status: serverDeleteProhibited
Status: serverTransferProhibited
Status: serverUpdateProhibited
Updated Date: 15-mar-2010
Creation Date: 11-oct-1999
Expiration Date: 11-oct-2014
>>> Last update of whois database: Fri, 20 Aug 2010 05:42:12 UTC <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' (“VeriSign”) Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
The data in Register.com's WHOIS database is provided to you by
Register.com for information purposes only, that is, to assist you in
obtaining information about or related to a domain name registration
record. Register.com makes this information available “as is,” and
does not guarantee its accuracy. By submitting a WHOIS query, you
agree that you will use this data only for lawful purposes and that,
under no circumstances will you use this data to: (1) allow, enable,
or otherwise support the transmission of mass unsolicited, commercial
advertising or solicitations via direct mail, electronic mail, or by
telephone; or (2) enable high volume, automated, electronic processes
that apply to Register.com (or its systems). The compilation,
repackaging, dissemination or other use of this data is expressly
prohibited without the prior written consent of Register.com.
Register.com reserves the right to modify these terms at any time.
By submitting this query, you agree to abide by these terms.
Registrant:
Beijing Baidu NETcom Science and Technology Co.Ltd.
Baidu NETcom Baidu NETcom
No. 10, Shangdi 10th Street, Haidian District,
Beijing, 100085
CN
Phone: +86.1059926680
Email: [email protected]
Registrar Name….: Register.com
Registrar Whois…: whois.register.com
Registrar Homepage: www.register.com
Domain Name: baidu.com
Created on…………..: 1999-10-11
Expires on…………..: 2014-10-11
Administrative Contact:
Beijing Baidu NETcom Science and Technology Co.Ltd.
Baidu NETcom Baidu NETcom
No. 10, Shangdi 10th Street, Haidian District,
Beijing, 100085
CN
Phone: +86.1059927440
Email: [email protected]
Technical Contact:
Registercom
Domain Registrar
575 8th Avenue
New York, NY 10018
US
Phone: +1.9027492701
Email: [email protected]
DNS Servers:
ns3.baidu.com
ns2.baidu.com
ns4.baidu.com
dns.baidu.com
Visit AboutUs.org for more information about baidu.com
AboutUs: baidu.com
Register your domain name at http://www.register.com

php技術php whois查詢API制作方法,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 私人玩物在线观看 | 2023极品少妇XXXO露脸 | 国产亚洲中文字幕视频 | 亚洲AV国产国产久青草 | 久久久精品国产免费A片胖妇女 | 日本老人oldmantv乱 | 神电影院午夜dy888我不卡 | 女人吃男人的鸡鸡 | 国色精品VA在线观看免费视频 | 亚洲第一成年人网站 | 国产成人精品免费视频大全可播放的 | 性啪啪chinese东北女人 | 5G年龄确认我已满18免费 | 欧美狂野乱码一二三四区 | 成人永久免费视频网站在线观看 | 亚洲中文字幕一二三四区苍井空 | 精品一区二区三区免费观看 | 国产乱人精品视频AV麻豆 | 久久热这里只有 精品 | 亚洲三级黄色 | 欧美高清videossexo | 无颜之月5集全免费看无删除 | 边摸边吃奶玩乳尖视频 | 亚洲视频精品 | 伊人网综合在线观看 | 亚洲欧美强伦一区二区另类 | 亚洲欧美中文日韩v在线 | 无码AV免费精品一区二区三区 | 一区三区三区不卡 | 国产色精品久久人妻无码 | 亚洲精品无码成人AAA片 | 亚洲精品久久午夜麻豆 | 亚洲一区自拍高清亚洲精品 | 久久精品99热超碰 | 在线一本码道高清 | 蜜桃视频一区二区 | 一个人HD在线观看免费高清视频 | 国产女人喷潮视频免费 | 中国女人内谢69XXXXXA片 | 国内免费视频成人精品 | 成人免费视频无遮挡在线看 |