JS判断是不是搜索引擎蜘蛛
JS判断是不是搜索引擎蜘蛛:
自行加个跳转代码,即可实现不是蜘蛛访问时 直接进行跳转!
<script>if((navigator.userAgent.match(/(spider|bot)/i))){ / /是蜘蛛
}else{ document.write('不是蜘蛛');
}</script><script>if((navigator.userAgent.match(/(spider|bot)/i))){ / /是蜘蛛
}else{ document.write('不是蜘蛛');
}</script>
评论
发表评论: