1, simplify the code. (in fact, the definition of a few variables is removed)
2, for the information retrieved from InterNIC is too simple, according to InterNIC feedback information in the WHOIS server for further inquiries. For example, Yahoo has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
var $cache _dir = "./"; Set yourself accord
I. Classification of information collection
The methods of information collection can be grouped into two categories:
1. Active Collection: Active collection is to obtain relevant information, such as ICMP ping or TCP port scan, by directly initiating interaction with the target network being tested.
2. Passive collection: Passive collection is through Third-party services to obtain information on the target network, such as the use of Google search engine.
second, the domain name information
1, simplified the code. (It actually removes some of the variables that you don't need to define)
2, for the information retrieved from the InterNIC is too simple, according to InterNIC feedback in the information of WHOIS server for further inquiries. Yahoo, for example, has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
var $cache _dir
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
Is the Microsoft. AspNet. Identity. EntityFramework introduced for Identity authentication still causing multiple contexts. Is it difficult to rename the generated DB ?, Aspnet. identity
The most recent project needs to integrate authentication in the API, So Microsoft is selected. aspNet. identity. core, and Microsoft
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
Whois query interface documentation
Whois (hereinafter referred to as "who is") is a transmission protocol used to query the IP address of a domain name and information such as the owner. Simply put, whois is a database used to query whether a domain name has been registered and the details of the domain name to be registered (such as the domain name owner and do
Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy CodeThe code is as follows:
function Whois_hichina ($domain) {
Preg_match ("|
(.+?)|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= ' $domain. '), $whois);
$whois [0] = str_replace (' Friendly tip: The expire
NL whois.domain-registry.nlEU whois.euEdu whois.educause.netNET Whois.crsnic.netCOM whois.crsnic.netORG whois.crsnic.netInfo whois.afilias.comDe whois.denic.deCN whois.cnnic.net.cnThese are the WHOIS servers I've collected.
For example, you want to query the domain name is www.111cn.net it belongs to the. NET suffix, this time you will go to whois.crnic.net this side to query.
Next we look at the specific implementation code.
Using System;Us
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
1, simplify the code. (in fact, the definition of a few variables is removed)
2, for the information retrieved from InterNIC is too simple, according to InterNIC feedback information in the WHOIS server for further inquiries. For example, Yahoo has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
var $cache _dir = "./"; Set yourself accord
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
Domain whois query function [million NET and new network]function Whois_hichina ($domain) {Preg_match ("|
$whois [0] = str_replace (' Friendship tip: According to the requirements of the registration Board, the expired domain name may be in the Registrar automatic renewal phase, you see the domain name due date in this query for reference only
return $whois [0
This article is an example of how to query whois information in PHP. Share to everyone for your reference. Specifically as follows:
Here, use PHP to query the list of Web sites for whois information
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain));
$domain = preg_replace ('/^http:\/\//i ', ', ', $domain);
$domain = preg_replace ('/^www\./i ', ', ', $doma
: 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 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.