Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the all-in-one-seo-pack domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/ixvps.com/public_html/wp-includes/functions.php on line 6114
{"id":47457,"date":"2021-11-16T10:53:19","date_gmt":"2021-11-16T02:53:19","guid":{"rendered":"https:\/\/www.jiloc.com\/?p=47457"},"modified":"2021-11-16T17:59:27","modified_gmt":"2021-11-16T09:59:27","slug":"wordpress-%e5%88%a4%e6%96%ad%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e6%98%be%e7%a4%ba%e6%ad%a3%e5%b8%b8%e9%a1%b5%e9%9d%a2-%e6%ad%a3%e5%b8%b8%e7%94%a8%e6%88%b7%e6%98%be%e7%a4%ba%e5%ae%9a%e5%88%b6%e9%9d%99","status":"publish","type":"post","link":"https:\/\/ixvps.com\/47457.html","title":{"rendered":"WordPress \u5224\u65ad\u641c\u7d22\u5f15\u64ce\u663e\u793a\u6b63\u5e38\u9875\u9762 \u6b63\u5e38\u7528\u6237\u663e\u793a\u5b9a\u5236\u9759\u6001\u9875"},"content":{"rendered":"\n

\u521a\u521a\u6709\u4e2a\u5c0f\u4f19\u4f34\u63d0\u51fa\u8ba9\u6211\u5b9e\u73b0\u8fd9\u6837\u7684\u9700\u6c42\uff1a<\/p>\n\n\n\n

\u5728Wordpress\u7684\u65e5\u5e38\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u9488\u5bf9\u641c\u7d22\u5f15\u64ce\u6b63\u5e38\u663e\u793a\uff0c\u5bf9\u6b63\u5e38\u7528\u6237\u663e\u793a\u4e3a\u7279\u6b8a\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n

\u65b9\u6cd5\u4e00<\/h1>\n\n\n\n

\u4e0b\u9762\u6211\u4eec\u7ed9php\u7684\u4ee3\u7801\u89e3\u51b3\u65b9\u6cd5<\/p>\n\n\n\n

\u4fee\u6539\u4e3b\u9898\u7684 index.php<\/code> \uff0c\u5c06\u4ee5\u4e0b\u4ee3\u7801\u589e\u52a0\u5230\u7b2c\u4e00\u884c<\/h2>\n\n\n\n
<?php\nfunction is_spider() {\n        echo $agent= strtolower($_SERVER['HTTP_USER_AGENT']);\n        if (!empty($agent)) {\n                $spiderSite= array(\n                        \"TencentTraveler\",\n                        \"Baiduspider+\",\n\n                        'Baiduspider',\n                        \"BaiduGame\",\n                        \"Googlebot\",\n                        \"msnbot\",\n                        \"Sosospider+\",\n                        \"Sogou web spider\",\n                        \"ia_archiver\",\n                        \"Yahoo! Slurp\",\n                        \"YoudaoBot\",\n                        \"Yahoo Slurp\",\n                        \"MSNBot\",\n                        \"Java (Often spam bot)\",\n                        \"BaiDuSpider\",\n                        \"Voila\",\n                        \"Yandex bot\",\n                        \"BSpider\",\n                        \"twiceler\",\n                        \"Sogou Spider\",\n                        \"Speedy Spider\",\n                        \"Google AdSense\",\n                        \"Heritrix\",\n                        \"Python-urllib\",\n                        \"Alexa (IA Archiver)\",\n                        \"Ask\",\n                        \"Exabot\",\n                        \"Custo\",\n                        \"OutfoxBot\/YodaoBot\",\n                        \"yacy\",\n                        \"SurveyBot\",\n                        \"legs\",\n                        \"lwp-trivial\",\n                        \"Nutch\",\n                        \"StackRambler\",\n                        \"The web archive (IA Archiver)\",\n                        \"Perl tool\",\n                        \"MJ12bot\",\n                        \"Netcraft\",\n                        \"MSIECrawler\",\n                        \"WGet tools\",\n                        \"larbin\",\n                        \"Fish search\",\n                );\n                foreach($spiderSite as $val) {\n                        $str = strtolower($val);\n                        if (strpos($agent, $str) !== false) {\n                                return true;\n                        }\n                }\n        } else {\n                return false;\n        }\n}\n\n\/\/\u6839\u636euseragent\u5224\u65ad\u7c7b\u578b\nif( is_spider() ){\n    \/\/\u6b63\u5e38\u7684\u9875\u9762\u4ee3\u7801\n}else{\n    \/\/\u6b63\u5e38\u7528\u6237\u770b\u5230\u7684\u4ee3\u7801\n}\n<\/code><\/pre>\n\n\n\n

\u65b9\u6cd5\u4e8c<\/h1>\n\n\n\n

\u4f7f\u7528\u4ee5\u4e0bjs\u5b9e\u73b0\uff0c\u6dfb\u52a0js<\/p>\n\n\n\n

document.ready=function ready(fn){if(document.addEventListener){document.addEventListener(\"DOMContentLoaded\",function(){document.removeEventListener(\"DOMContentLoaded\",arguments.callee,false);fn()},false)}else{if(document.attachEvent){document.attachEvent(\"onreadystatechange\",function(){if(document.readyState==\"complete\"){document.detachEvent(\"onreadystatechange\",arguments.callee);fn()}})}}};document.getElementsByTagName(\"html\")[0].style.display=\"none\";(function(){var itis=true;var titles=document.title;document.title=\"\";document.ready(function(){try{if(itis){$(\"body\").html(\"\");$(\"body\").load(\"\/fake.txt\",function(){document.title=$(\".headertitle\").text()})}else{document.title=titles}}catch(e){}document.getElementsByTagName(\"html\")[0].style.display=\"block\"})})();document.oncontextmenu=function(e){var e=e||window.event;e.returnValue=false;return false};window.onkeydown=function(e){if(e.ctrlKey&&e.keyCode==83){e.preventDefault();e.returnValue=false;return false}};<\/code><\/pre>\n\n\n\n

\u5728\u6839\u76ee\u5f55\u6dfb\u52a0 \/fake.txt<\/code> \u5185\u5bb9\uff1a<\/p>\n\n\n\n

This is a test.<\/p>\n","protected":false},"excerpt":{"rendered":"

\u521a\u521a\u6709\u4e2a\u5c0f\u4f19\u4f34\u63d0\u51fa\u8ba9\u6211\u5b9e\u73b0\u8fd9\u6837\u7684\u9700\u6c42\uff1a \u5728Wordpress\u7684\u65e5\u5e38\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u9488\u5bf9\u641c\u7d22\u5f15\u64ce\u6b63\u5e38\u663e\u793a\uff0c\u5bf9\u6b63\u5e38 […]<\/p>\n","protected":false},"author":1,"featured_media":43051,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,17,13,33],"class_list":["post-47457","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lempa","tag-javascript","tag-linux","tag-php","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/posts\/47457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/comments?post=47457"}],"version-history":[{"count":0,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/posts\/47457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/media\/43051"}],"wp:attachment":[{"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/media?parent=47457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/categories?post=47457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixvps.com\/wp-json\/wp\/v2\/tags?post=47457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}