wordpress专用防止采集的代码
//wordpress专用防止采集的代码: if(!is_admin()) { add_action(‘init’, ‘deny_mirrored_request’, 0); } function deny_mirrored_request() { $ua = $_SERVER[‘HTTP_USER_AGENT’]; if(!$ua || preg_match(‘/PHP/i’, $ua)) {
阅读更多 »
//wordpress专用防止采集的代码: if(!is_admin()) { add_action(‘init’, ‘deny_mirrored_request’, 0); } function deny_mirrored_request() { $ua = $_SERVER[‘HTTP_USER_AGENT’]; if(!$ua || preg_match(‘/PHP/i’, $ua)) {
阅读更多 »