国内搜索引擎来路跳转代码

str_replace(array('baidu.com/link', 'baidu.com/from', 'so.com/link', 'so.com/s', 'sm.cn/s', 'sogou.com/web', 'sogou.com/link'), '', $_SERVER['HTTP_REFERER'], $count);
if ($count) {
    // 天马行空吧
}

 

posted @ 2016-03-03 10:15  smismile  阅读(438)  评论(0编辑  收藏  举报