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)站備案/許可證號:</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表單自動(dòng)提交驗(yàn)證實(shí)例教程
這篇文章主要介紹了ThinkPHP表單自動(dòng)提交驗(yàn)證實(shí)例教程,非常有實(shí)用價(jià)值,需要的朋友可以參考下2014-07-07
php實(shí)現(xiàn)在線生成條形碼示例分享(條形碼生成器)
php實(shí)現(xiàn)在線生成條形碼,可以做一個(gè)條形碼生成器,大家參考使用吧2013-12-12
Laravel5.4簡單實(shí)現(xiàn)app接口Api Token認(rèn)證方法
這篇文章主要介紹了Laravel5.4簡單實(shí)現(xiàn)app接口Api Token認(rèn)證,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-08-08
thinkphp普通查詢與表達(dá)式查詢實(shí)例分析
這篇文章主要介紹了thinkphp普通查詢與表達(dá)式查詢,以實(shí)例形式較為詳細(xì)的分析了thinkphp中的普通查詢與表達(dá)式查詢具體用法,包含普通查詢的字符串方式與數(shù)組方式以及表達(dá)式查詢中的各種常用技巧,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2014-11-11
Yii2使用小技巧之通過 Composer 添加 FontAwesome 字體資源
前天幫同事改個(gè)十年前的網(wǎng)站 bug,頁面上一堆 include require 不禁讓人抱頭痛哭。看到 V2EX 上的討論說,寫 PHP 不用框架等同于耍流氓。Yii Framework 是我使用了 2 年多的 PHP 框架,器大活好,皮實(shí)耐操。 Yii2 還在 Beta 中,不過不影響拿來預(yù)研。2014-06-06
CodeIgniter讀寫分離實(shí)現(xiàn)方法詳解
這篇文章主要介紹了CodeIgniter讀寫分離實(shí)現(xiàn)方法,結(jié)合實(shí)例形式較為詳細(xì)的分析了CodeIgniter讀寫分離的相關(guān)配置與功能實(shí)現(xiàn)技巧,需要的朋友可以參考下2016-01-01

