php 禁止谷歌蜘蛛抓取

$useragent = strtolower($_SERVER['HTTP_USER_AGENT']); 
if (strpos($useragent, 'googlebot')){
exit();
}
posted @ 2014-06-02 16:16  群叔  阅读(856)  评论(0编辑  收藏  举报