一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

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: domainmaster@baidu.com
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: wumengyi@baidu.com
Technical Contact:
Registercom
Domain Registrar
575 8th Avenue
New York, NY 10018
US
Phone: +1.9027492701
Email: domainregistrar@register.com
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制作方法,轉載需保留來源!

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

主站蜘蛛池模板: 在线观看精品视频网站www | 亚洲一区在线免费 | 爽妇网国产精品 | 免费观看成人鲁鲁鲁鲁鲁视频 | 国产精品一区二区三区高清在线 | 成人成人性区 | 制服丝袜怡红院 | 国产精品久久久久毛片真精品 | 亚洲小说区图片区另类春色 | 久久精品国产清白在天天线 | 看全色黄大色黄大片色黄看的 | 在线观看免费视频黄 | 视频在线91 | 精品在线视频播放 | 天天影院色 | 久久99爱爱 | 福利800av视频导航 | 愉拍自拍一区首页 | 亚色网址 | 久久精品伊人 | 婷婷色中文 | 一区二区三区四区精品 | 婷婷国产偷v国产偷v亚洲 | 精品在线91 | 在线观看精品视频网站www | 成人福利网站在线看视频 | 欧美日韩激情一区二区三区 | 欧美日韩国产亚洲一区二区三区 | 国产高清免费的视频 | 亚洲欧洲免费 | 玖玖在线播放 | 一区二区国产在线播放 | 重福利影院 | 男人的天堂久久精品激情a 男人进去女人爽免费视频国产 | 色婷婷综合欧美成人 | 成年香蕉大黄美女美女 | 最新精品视频在线观看 | 综合激情五月婷婷 | 中日韩美中文字幕 | 欧美色伊人| 国产精彩对白综合视频 |