天天躁日日躁狠狠躁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制作方法,轉載需保留來源!

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

主站蜘蛛池模板: 国产在线观看免费观看 | CHINESE熟女老女人HD视频 | 在教室伦流澡到高潮HNP视频 | 在线日韩欧美一区二区三区 | 亚洲免费精品视频 | AV亚洲精品少妇毛片无码 | 亚洲m男在线中文字幕 | 菠萝菠萝蜜在线观看视频 | 久久久久久久电影 | 十分钟免费视频大全在线 | 野花日本大全免费观看3中文版 | 嘟嘟嘟在线视频免费观看高清中文 | 日本男女动态图 | 92午夜免费福利757 | 飘雪在线观看免费完整版 | 99久久国产综合精品 | 男人J进女人P | 精品第一国产综合精品蜜芽 | 国产电影一区二区三区 | 人人看人人看 | 果冻传媒在线看免费高清 | 亚洲伊人情人综合网站 | 大胸美女被C得嗷嗷叫动态图 | 国产成人精品永久免费视频 | 甜涩性爱下载 | 一个人看www | 国产主播福利一区二区 | 精品国产品国语在线不卡 | 在线观看国产视频 | 欧洲最大无人区免费高清完整版 | 久久亚洲电影www电影网 | 末成年美女黄网站色大片连接 | 伊人久久中文 | 扒开老师大腿猛进AAA片 | WWW国产亚洲精品久久 | 免费精品一区二区三区在线观看 | 欧美亚洲视频在线二区 | 国产毛片AV久久久久精品 | adc年龄确认大驾光临入口 | 国产性夜夜性夜夜爽91 | 亚洲精品久久久992KVTV |