齐博如何实现防采集技术
编辑发布:飞将军
在bencandy.php 中 $rsdb[content] 下一行添加:
avoidgather_free(); //防采集处理
avoidgather_free 函数:
function avoidgather_free( ){
global $rsdb;
$AvoidGatherpre = rands( 3 ).newclass.rands( 3 );
$AvoidGatherString = "abcdefg123456";
$rsdb[content] = "<div class='{$AvoidGatherpre}'>{$AvoidGatherString}</div>{$rsdb['content']}<div class='{$AvoidGatherpre}'>{$AvoidGatherString}</div>";
$AvoidGatherpre = rands( 3 ).newclass.rands( 3 );
$rsdb[content] = str_replace( "<br>", "<br><div class='{$AvoidGatherpre}'>{$AvoidGatherString}{$AvoidGatherpre}</div>", $rsdb[content] );
$rsdb[content] = str_replace( "<BR>", "<BR><div class='{$AvoidGatherpre}'>{$AvoidGatherString}{$AvoidGatherpre}</div>", $rsdb[content] );
$AvoidGatherpre = rands( 3 ).newclass.rands( 3 );
$rsdb[content] = str_replace( "<p>", "<p><div class='{$AvoidGatherpre}'>{$AvoidGatherString}{$AvoidGatherpre}</div>", $rsdb[content] );
}
|
点击率:1833
|
|