Sometimes we need to obtain the website record filing information, so we can use this thief program to obtain the information from 360.
The code is as follows:
// WebSite http://www.micxp.com
Function miibeian ($ domain ){
$ Domain = base64_encode ($ domain );
$ Opts = array (
'Http' => array (
'Method' => "GET ",
'Timeout' => 5
)
);
$ Context = stream_context_create ($ opts );
$ Url = 'http: // webid.360.cn/complaininfo.php? Domain = '. $ domain;
$ Html = file_get_contents ($ url, false, $ context );
If (strpos ($ html, 'no website information found ')){
Return false;
}
$ Flag ='
';
$ Start = strpos ($ html, $ flag) + strlen ($ flag );
$ Info = substr ($ html, $ start, strpos ($ html ,'
')-$ Start );
$ Info = str_replace ('','', $ info );
$ Info = str_replace ('
Website name:', '', $ Info );
$ Info = str_replace ('
Home address:', '', $ Info );
$ Info = str_replace ('
Organizer name:', '', $ Info );
$ Info = str_replace ('
Subject nature:', '', $ Info );
$ Info = str_replace ('
Review time:', '', $ Info );
$ Info = str_replace ('
Website filing/License No:', '', $ Info );
$ Info = str_replace ("\ r \ n", '', $ info );
$ Info = str_replace ('', '', $ Info );
$ Info = trim ($ info );
$ Temp = explode ('', $ info );
Return $ temp;
}
// Http://webid.360.cn/complaininfo.php? Domain = c3lzeXVuLmNvbQ =
$ Result = miibeian ('bitscn. com ');
Print_r ($ result );