Products
GG网络技术分享 2025-03-18 16:16 0
分享一个泛站站群域名百度站长平台批量认证域名方法,首先在根目录新建一个baidu.php
代码如下:
<?php
$tmp = $_SERVER[\'HTTP_USER_AGENT\'];if(strpos($tmp, \'Baiduspider\') >0){
$preg = \"/baidu_verify_(.*?).html/i\";
$content=$_SERVER[\'REQUEST_URI\'];
preg_match($preg,$content,$matches);echo $matches[1];
?>再添加一下伪静态规则:
rewrite /baidu_verify_(.*).html /baidu.php?$1 last;
就可以添加认证了,试试吧
Demand feedback