php實(shí)現(xiàn)的獲取網(wǎng)站備案信息查詢代碼(360)
更新時(shí)間:2013年09月23日 17:50:14 作者:
有時(shí)候我們需要獲取網(wǎng)站備案信息,那么就可以用這個(gè)小偷程序,獲取了,信息從360抓取
復(fù)制代碼 代碼如下:
<?php
// 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.#/complaininfo.php?domain=' . $domain;
$html = file_get_contents ( $url, false, $context );
if (strpos ( $html, '未查詢到網(wǎng)站信息' )) {
return false;
}
$flag = '<ul>';
$start = strpos ( $html, $flag ) + strlen ( $flag );
$info = substr ( $html, $start, strpos ( $html, '</ul>' ) - $start );
$info = str_replace ( ' ', '', $info );
$info = str_replace ( '<li><strong>網(wǎng)站名稱:</strong>', '', $info );
$info = str_replace ( '<li><strong>網(wǎng)站首頁地址:</strong>', ' ', $info );
$info = str_replace ( '<li><strong>主辦單位名稱:</strong>', ' ', $info );
$info = str_replace ( '<li><strong>主辦單位性質(zhì):</strong>', ' ', $info );
$info = str_replace ( '<li><strong>審核時(shí)間:</strong>', ' ', $info );
$info = str_replace ( '<li><strong>網(wǎng)站備案/許可證號(hào):</strong>', ' ', $info );
$info = str_replace ( "\r\n", '', $info );
$info = str_replace ( '</li>', '', $info );
$info = trim ( $info );
$temp = explode ( ' ', $info );
return $temp;
}
// http://webid.#/complaininfo.php?domain=c3lzeXVuLmNvbQ==
$result = miibeian ( 'jb51.net' );
print_r ( $result );
相關(guān)文章
Thinkphp 框架擴(kuò)展之Widget擴(kuò)展實(shí)現(xiàn)方法分析
這篇文章主要介紹了Thinkphp 框架擴(kuò)展之Widget擴(kuò)展實(shí)現(xiàn)方法,結(jié)合實(shí)例形式分析了Thinkphp 框架Widget擴(kuò)展概念、原理、實(shí)現(xiàn)方法及操作注意事項(xiàng),需要的朋友可以參考下2020-04-04phpStudy2018安裝教程及本地服務(wù)器的配置方法
phpStudy 2018是一款非常強(qiáng)大的php環(huán)境調(diào)試工具,一次性安裝,無須配置即可使用,是非常方便、好用的PHP調(diào)試環(huán)境。這篇文章主要介紹了phpStudy2018安裝教程及本地服務(wù)器的配置方法,需要的朋友可以參考下2018-03-03PHP實(shí)現(xiàn)使用優(yōu)酷土豆視頻地址獲取swf播放器分享地址
這篇文章主要介紹了PHP實(shí)現(xiàn)使用優(yōu)酷土豆視頻地址獲取swf播放器分享地址,即分析優(yōu)酷土豆的視頻頁面地址,從而獲得對應(yīng)的swf播放器分享地址,需要的朋友可以參考下2014-06-06PHP可變函數(shù)學(xué)習(xí)小結(jié)
PHP 支持可變函數(shù)的概念。這意味著如果一個(gè)變量名后有圓括號(hào),PHP 將尋找與變量的值同名的函數(shù),并且嘗試執(zhí)行它,本文給大家分享php可變函數(shù)學(xué)習(xí)小結(jié),對php可變函數(shù)相關(guān)知識(shí)感興趣的朋友一區(qū)學(xué)習(xí)吧2015-11-11php中g(shù)et_headers函數(shù)的作用及用法的詳細(xì)介紹
本篇文章介紹了,在php中g(shù)et_headers函數(shù)的作用及用法。需要的朋友參考下2013-04-04ajax在joomla中的原生態(tài)應(yīng)用代碼
一般很少看到j(luò)oomla中使用ajax,筆者以前說到過用jquery來實(shí)現(xiàn),對于那些驗(yàn)證用戶名不能重復(fù),郵箱不能重復(fù),以及聯(lián)動(dòng)菜單,等等的應(yīng)用,使用ajax是免不了的2012-07-07