网站收录

步骤一、申请百度站长账号,验证网站,只有验证了,才能使用百度站长里面功能,具体操作请参考《如何快速在百度站长平台上完成网站验证》;

  步骤二、向百度提交网站域名,告诉百度有新网站存在,需要登陆百度站长。提交地址:http://zhanzhang.baidu.com/linksubmit/url

  步骤三、在百度站长左侧导航中找到“网页抓取”-“链接提交”,有两种提交方式一种是自动提交,另外一种是手动提交,主要的还是自动提交功能添加,1、主动推送功能,2、自动推送功能,3、网站地图功能,具体操作请参考《如何给网站添加百度链接提交功能

  步骤四、在百度站长左侧导航中找到“搜索展现”-“站点属性”-“主体备案号”,添加网站备案号,注意:比如深度网的备案号是“粤ICP备12078025号”就行了,后面的-x无需填写,如果出现一些问题提示,多提交几次即可。

  按照以上四个步骤操作,网站收录还是很快,前提是网站质量好,在深度网做的营销网站,按照以上步骤,网站收录快则1天,慢则不会超过一个礼拜,这是小编自己试验过的。当然更多的还是需要坚持更新原创优质内容,坚持做高质量网络推广,这样网站收录越来越多,关键词排名越来越好。以上就是深度网小编分享的个人经验,希望能够帮助大家!

http://www.seoshijie.com/wangzhan/56.html

怎么查网站是否被K过

查询网页是否被被堵收录

<?php
    $cxurl="www.meiye5.com/html/n212.html";
    function okBaidu($url){
        $url='http://www.baidu.com/s?wd='.$url;
        $curl=curl_init();
        curl_setopt($curl,CURLOPT_URL,$url);
        curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
        $rs=curl_exec($curl);
        curl_close($curl);
        if(!strpos($rs,'提交网址')){
            echo "已收录";
        }else{
            echo "未收录";
        }
    }
    echo okBaidu($cxurl);
?>


html:
<html>
    <head>
        <script type="text/javascript">
            function baidushoulu(){
                $.ajax({
                    type: "POST",
                    url: "/php/baidushoulu.php",//提交到后台文件
                    data: $('#form').serialize(),//表单传值
                    success: function(data) {        
                        $("#baidushoulu").html(data);//以html的形式显示在指定id的元素里
                    }
                });
                return false;
            }
            function demo(){
                var nv = document.getElementById("baidushoulu");
                nv.innerHTML="正在查询...";setTimeout('baidushoulu()',500);
            }
        </script>
    </head>
    <body>
        <p>
            测试一下吧,复制一个网址到文本框:
            <span id="baidushoulu">
                <span style="color:#ff0000;font-weight:900;">
                    &times; 未收录
                </span>
                <a target="_blank" style="margin-left:10px;color:#6d6d6d;" href="https://www.baidu.com/s?wd=www.nongyejing.com/11,html">
                    [去百度查看结果]
                </a>
            </span>
        </p>
        <form id="form">
            <input onkeydown="if(event.keyCode==13){event.keyCode=0;event.returnValue=false;}"
            id="textfields" name="baidushoulu" autocomplete="off" style="70%;margin-right:3%;"
            />
            <a onclick="demo()" style="color: rgb(255, 255, 255); text-decoration: none; cursor: pointer; font-family: 微软雅黑; display: inline-block;  140px; text-align: center; background:rgb(0, 124, 212); line-height: 30px; border-radius: 10px; position: relative; margin-right: 20px;">
                查询
            </a>
        </form>
    </body>
</html>
View Code
<?php
header("Content-type: text/html; charset=utf-8");
function checkBaidu($url) {
    $url = 'http://www.baidu.com/s?wd=' . $url;

    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $rs = curl_exec($curl);
    curl_close($curl);

    $arr = parse_url($url);

    if (strpos($arr['query'], 'http://')) {
        $arr['query'] = str_replace('http://', '', str_replace('wd=', '', $arr['query']));
    } else {
        $arr['query'] = str_replace('wd=', '', $arr['query']);
    }

    if (strpos($arr['query'], '?')) {
        $str = strstr($arr['query'], '?');
        $arr['query'] = str_replace($str, '', $arr['query']);
    }

    if (strpos($arr['query'], '/')) {
        $narr = explode('/', $arr['query']);
        $arr['query'] = $narr[0];
    }

    if (strpos($rs, '<b>'.$arr['query'].'</b>')) {
        return 1;
    } else {
        return 0;
    }
}

echo checkBaidu('http://www.jbxue.com/article/1.html');
?>
原文地址:https://www.cnblogs.com/lichihua/p/10735665.html