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

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

主站蜘蛛池模板: 久久偷拍vs国产在线播放 | 3d无遮挡h肉动漫在线播放 | 韩国伦理电影在线神马网 | 久久99r66热这里只有精品 | 欧美一区二区视频高清专区 | 久久久精品免费免费直播 | jizz教师| 一本之道高清在线观看免费 | 日韩精品久久久久久久电影 | 东北成人社区 | 国产成人99久久亚洲综合精品 | 国产免费不卡 | 国产精品99久久免费黑人人妻 | 国产全部视频列表支持手机 | 一二三四视频免费社区5 | 秘密教学26我们在做一次吧免费 | 午夜福利体验试看120秒 | 99国产精品久久人妻无码 | 午夜福利体验免费体验区 | 伊人久久大香线蕉综合影 | 亚洲免费国产 | MD传媒在线观看佳片 | 亚洲精品线在线观看 | 厕所xxxxx| 2020国产成人精品免费视频 | 午夜理论片日本中文在线 | 四虎影院2022 | 日韩精品久久久久影院 | YELLOW视频在线观看大全 | 美女被强奷到抽搐的动态图 | 亚洲精品色播一区二区 | 最近2019中文字幕MV免费看 | 99re6久久热在线视频 | 欧美国产一区二区三区激情无套 | 一级毛片免费视频网站 | 欲奴第一季在线观看全集 | 老司机福利在 线影院 | 国产精品久久久久a影院 | 999人在线精品播放视频 | 亚洲女初尝黑人巨磁链接 | 九九热这里只有精品视频免费 |