这个安全跳转类似于知乎,网易邮箱,点开新链接会跳出一个安全提示的对话框,功能是可以的,但是个人站点有时候用处不大。以下是针对yumu4.0主题做的修改:在customize.php中找到这段:

//go跳转,使用MD5加密外链,一定程度上可以防止搜索引擎爬虫逃跑。
function the_content_nofollow($content){
    preg_match_all('/<a(.*?)href="(.*?)"(.*?)>/',$content,$matches);
    if($matches){
        foreach($matches[2] as $val){
            if(strpos($val,'://')!==false && strpos($val,home_url())===false && !preg_match('/\.(jpg|jepg|png|ico|bmp|gif|tiff|zip|rar|exe|dmg|7z|svg|mp3|mp4|avi|3gp|webp)/i',$val)){
                $content=str_replace("href=\"$val\"", "href=\""."https://link.yumus.cn/aq/?url=".base64_encode($val)."\" rel=\"nofollow\" target=\"_blank\"",$content);
            }
        }
    }
    return $content;
}

将上面那句:$content=str_replace("href=\"$val\"", "href=\""."https://link.yumus.cn/aq/?url=".base64_encode($val)."\" rel=\"nofollow\" target=\"_blank\"",$content);注释掉,在下面添加一行代码:

$content=str_replace("href=\"$val\"", "href=\"". $val . "\" rel=\"nofollow\" target=\"_blank\"",$content);

意思就是将链接那个替换函数增加的前缀以及base64加密真实地址的内容取消就可以。可能有更方便的设置,只是我没找到。