: This article mainly introduces the WHOIS class (modified version) in php. if you are interested in the PHP Tutorial, please refer to it. 1. simplified the code. (In fact, some unnecessary variable definitions are removed)
2. the information retrieved from INTERNIC is too simple. further query is performed based on the whois server in INTERNIC feedback. For example, YAHOO has more detailed information on w
The modified version of the WHOIS class. 1. simplified the code. (In fact, some unnecessary variable definitions are removed.) 2. the information retrieved from INTERNIC is too simple. WHOISSER 1 in INTERNIC feedback simplifies the code. (In fact, some unnecessary variable definitions are removed)
2. the information retrieved from INTERNIC is too simple. further query is performed based on the whois server
I'm afraid a lot of friends like me,makewithpythonlanguageincrediblycan beImplementwhoisServer Queryfunction. belowI put the code and instructions to everyone to see, who need to be able to refer to. Originally want to directly from the WHOIS server query, but found to write the socket with 43 port link server, but some server address is not clear, and the query command seems to have changed so do not want to toss, think directly with Chinaz page impl
1. simplified the code. (In fact, some unnecessary variable definitions are removed)2. The information retrieved from INTERNIC is too simple. Further query is performed based on the whois server in INTERNIC feedback. For example, YAHOO has more detailed information on whois.networksolutions.com.Class whois {Var $ use_cache = 1;Var $ FROM_CACHE = 0;Var $ cache_dir = "./"; // according to your system settings
This article mainly describes the Python module based on the simple identification of the site domain name and owner of the method, a simple analysis of the Python whois module installation and use of relevant operating skills, the need for friends can refer to the following
The examples in this paper describe the method of simple identification of website domain names and owners based on the WHOIS module.
How to query whois information in PHP
In this paper, we explain how to query whois information in PHP. Share to everyone for your reference. Specific as follows:
Use PHP to query the list of websites that query whois information
?
123456789101112131415161718192021st22232425262728293031323334353637383940414243444546474849505152535455565758596061626364
Ajax said novel is not novel technology , if you have used Google Map service will realize his advantages, of course, can not be used, hehe!The following is a small example of their own writing, for reference only, laughed!
is to call the WHOIS query for 7eDetailed content can go online search ~The specific code is as follows:main.html content
HTML
>
Head
>
title
>
invoking WHOIS queries with Aja
I have been searching for APIs in PHP for WHOIS (with PHP example) for a long time.
Reply to discussion (solution)
Disguised advertisements for junk/junk charges
The best way is to connect to the official whois server. you call your own There are too many things in php whois.
Obviously, you can add your website traffic and directly obtain the offic
using python for whois queries
installing whois with the PIP command
Pip Install Python-whois
Python 2.7.6 (default, OCT 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type ' help ', ' copyright ', ' credits ' or ' Licens E "For more information.
" >>> import whois
>>>
How to use the installation successfully
[GCC 4.8.4] on
Use PHP to query the domain name status whois class
The code is as follows:
Class SearchDomain{Var $ domain = "";Function SetDomain ($ udomain){$ This-> domain = $ udomain;}//// Obtain whois and analyze the domain name status// OK is not registered// Non-null expiration time// Null value unknown//Function GetInfo (){/*$ Dinfo = trim ($ this-> GetWhois ());If ($ dinfo = "") return "";If (eregi ("no match
Php method of querying whois information, Phpwhois information method
In this paper, we explain how to query whois information in PHP. Share to everyone for your reference. Specific as follows:
Use PHP to query the list of websites that query whois information
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain)); $domain
bytes. If it fails, it returns false.
PHP $file fopen ("Test.txt", "R"); while feof ($file)) { echofgets($file). "; } fclose ($file); ? >
The FGETSS () function reads a row from an open file and filters out HTML and PHP tags. As with Fgets (), the difference is that FGETSS attempts to remove any HTML and PHP markup from the text that is being read.
FGETSS (file,length,tags) can use the optional third parameter tags to specify which tags are not removed. If it fai
I've been looking for a long time, and now we share it.
Reply to discussion (solution)
Disguised advertisements for charges of junk and stuff
The best way is to connect to the official WHOIS server, which you are completely calling your ownThere are too many things about PHP whois.
Obvious advertising posts, increase their own website traffic, direct access to the official not on the line
Query of most domain name suffixes and punycode domain names such as Chinese. The interface outputs plain Whois text data without any advertisement code! None? Php $ DomainNameoschina.net; defines the domain name variable value $ WhoisAPIwhois.263.twweixinindex. php? Domain. $ DomainName; defines the url of whoisapi $ WhoisDat
Query of most domain name suffixes and punycode domain names such as Chinese. The interface outputs plain
In operation and maintenance work, sometimes need to query some domain name registration information (domain name NS, registered users, registered mailbox, etc.), you can use the WHOIS command.The WHOIS command is used to find and display user-related information for a specified account (or domain name), because it is located in the WHOIS database of network solu
Hichina whois (the interfaces used provide valid interfaces for hichina)Copy codeThe Code is as follows:Function whois_hichina ($ domain ){Preg_match ("| $ Whois [0] = str_replace ('note: as required by the Registry, expired domain names may be in the automatic renewal phase of the Registrar, the domain name expiration date you see here is for reference only Return $ wh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.