步骤一、申请百度站长帐号,验证网站,只有验证了,才能使用百度站长里面功能,具体操做请参考《如何快速在百度站长平台上完成网站验证》;javascript
步骤二、向百度提交网站域名,告诉百度有新网站存在,须要登录百度站长。提交地址:http://zhanzhang.baidu.com/linksubmit/urlphp
步骤三、在百度站长左侧导航中找到“网页抓取”-“连接提交”,有两种提交方式一种是自动提交,另一种是手动提交,主要的仍是自动提交功能添加,一、主动推送功能,二、自动推送功能,三、网站地图功能,具体操做请参考《如何给网站添加百度连接提交功能》html
步骤四、在百度站长左侧导航中找到“搜索展示”-“站点属性”-“主体备案号”,添加网站备案号,注意:好比深度网的备案号是“粤ICP备12078025号”就好了,后面的-x无需填写,若是出现一些问题提示,多提交几回便可。java
按照以上四个步骤操做,网站收录仍是很快,前提是网站质量好,在深度网作的营销网站,按照以上步骤,网站收录快则1天,慢则不会超过一个礼拜,这是小编本身试验过的。固然更多的仍是须要坚持更新原创优质内容,坚持作高质量网络推广,这样网站收录愈来愈多,关键词排名愈来愈好。以上就是深度网小编分享的我的经验,但愿可以帮助你们!web
http://www.seoshijie.com/wangzhan/56.htmlajax
查询网页是否被被堵收录网络
<?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;"> × 未收录 </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="width:70%;margin-right:3%;" /> <a onclick="demo()" style="color: rgb(255, 255, 255); text-decoration: none; cursor: pointer; font-family: 微软雅黑; display: inline-block; width: 140px; text-align: center; background:rgb(0, 124, 212); line-height: 30px; border-radius: 10px; position: relative; margin-right: 20px;"> 查询 </a> </form> </body> </html>
<?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'); ?>