{"id":6889,"date":"2015-11-05T13:38:22","date_gmt":"2015-11-05T13:38:22","guid":{"rendered":"http:\/\/chan.nds.hk\/blog\/?p=6889"},"modified":"2015-11-06T05:49:19","modified_gmt":"2015-11-06T05:49:19","slug":"wordpress-%e6%96%87%e7%ab%a0%e4%b8%8d%e8%83%bd%e7%99%bc%e4%bd%88%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/chan.nds.hk\/blog\/?p=6889","title":{"rendered":"wordpress \u6587\u7ae0\u4e0d\u80fd\u767c\u4f48\u554f\u984c"},"content":{"rendered":"<p>\u9047\u4e0a\u4e86wordpress\u4e0d\u80fd\u63d2\u5165\u5716\u7247\uff0c\u6587\u7ae0\u4e0d\u80fdupdate\uff0c\u5f88\u591a\u5f8c\u53f0\u6307\u4ee4\u6309\u4e86\u5c31\u5f48\u56de\u9996\u9801\u3002\u5fd9\u4e86\u4e00\u8f2a\uff0c\u4e0d\u77e5\u4ec0\u9ebc\u539f\u56e0\uff0c\u53c8\u91cd\u88dd\uff0c\u53c8\u641e\u4ee3\u78bc\uff0c\u9802\uff0c\u539f\u4f86\u662f\u4f3a\u670d\u5668\u7684mod seurity\u7684\u554f\u984c\u3002<\/p>\n<p>\u7c21\u55ae\u5c31\u662f\u91dd\u5c0d\u7db2\u7ad9\u95dc\u4e86\u3002<\/p>\n<p>\u4f46\u4e5f\u53ef\u4ee5\u5165apache\u6539\u4ee3\u78bc\u3002<\/p>\n<p>\u67e5\u932f\u8aa4\u65e5\u5fd7<\/p>\n<p><span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">tail -f \/usr\/local\/apache\/logs\/error_log<\/span><\/p>\n<p>\u627e\u4ee5\u4e0b\u4ee3\u78bc<\/p>\n<p><strong style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">ModSecurity: Access denied with code 500<\/strong><span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">&nbsp;(phase 2) &hellip; [<\/span><strong style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">id &quot;300013&quot;<\/strong><span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">] [rev \"1\"] [msg &quot;<\/span><strong style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">Generic SQL injection protection<\/strong><span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">&quot;] [severity \"CRITICAL\"] [hostname&nbsp; www.prelovac.com\"] [<\/span><strong style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">uri &quot;\/vladimir\/wp-admin\/page.php&quot;<\/strong><\/p>\n<p>\u7de8\u8f2fapache<span style=\"color: rgb(65, 65, 65); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 26px;\">&nbsp;<\/span><strong style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(65, 65, 65); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 26px;\">\/usr\/local\/apache\/conf\/modsec2\/exclude.conf<\/strong><\/p>\n<p>\u52a0\u5165\u4ee5\u4e0b\u7684\u6307\u4ee4\u5c31\u89e3\u6c7a\u4e86\u3002<\/p>\n<p><span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">&lt;LocationMatch &quot;\/vladimir\/wp-admin\/page.php&quot;&gt;&nbsp;<\/span><br style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\" \/><br \/>\n\t<span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">SecRuleRemoveById 300013&nbsp;<\/span><br style=\"margin: 0px; padding: 0px; -webkit-appearance: none; color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\" \/><br \/>\n\t<span style=\"color: rgb(34, 34, 34); font-family: Ruda, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;\">&lt;\/LocationMatch&gt;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/chan.nds.hk\/blog\/?p=6889\"><img width=\"150\" height=\"150\" src=\"https:\/\/chan.nds.hk\/blog\/wp-content\/plugins\/thumbnail-for-excerpts\/tfe_no_thumb.png\" class=\"alignleft wp-post-image tfe\" alt=\"\" title=\"\" \/><\/a><p>\u9047\u4e0a\u4e86wordpress\u4e0d\u80fd\u63d2\u5165\u5716\u7247\uff0c\u6587\u7ae0\u4e0d\u80fdupdate\uff0c\u5f88\u591a\u5f8c\u53f0\u6307\u4ee4\u6309\u4e86\u5c31\u5f48\u56de\u9996\u9801\u3002\u5fd9\u4e86\u4e00\u8f2a\uff0c\u4e0d\u77e5\u4ec0\u9ebc\u539f\u56e0\uff0c\u53c8\u91cd\u88dd\uff0c\u53c8\u641e\u4ee3\u78bc\uff0c\u9802\uff0c\u539f\u4f86\u662f\u4f3a\u670d\u5668\u7684mod seurity\u7684\u554f\u984c\u3002 \u7c21\u55ae\u5c31\u662f\u91dd\u5c0d\u7db2\u7ad9\u95dc\u4e86\u3002 \u4f46\u4e5f\u53ef\u4ee5\u5165apache\u6539\u4ee3\u78bc\u3002 \u67e5\u932f\u8aa4\u65e5\u5fd7 tail -f \/usr\/local\/apache\/logs\/error_log \u627e\u4ee5\u4e0b\u4ee3\u78bc ModSecurity: Access denied with code 500&nbsp;(phase 2) &hellip; [id &quot;300013&quot;] [rev &#8220;1&#8221;] [msg &quot;Generic SQL injection protection&quot;] [severity &#8220;CRITICAL&#8221;] [hostname&nbsp; www.prelovac.com&#8221;] [uri &quot;\/vladimir\/wp-admin\/page.php&quot; \u7de8\u8f2fapache&nbsp;\/usr\/local\/apache\/conf\/modsec2\/exclude.conf \u52a0\u5165\u4ee5\u4e0b\u7684\u6307\u4ee4\u5c31\u89e3\u6c7a\u4e86\u3002 &lt;LocationMatch &quot;\/vladimir\/wp-admin\/page.php&quot;&gt;&nbsp; SecRuleRemoveById 300013&nbsp; &lt;\/LocationMatch&gt;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[111,310,21],"tags":[1561,1015,1016],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6889"}],"collection":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6889"}],"version-history":[{"count":0,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6889\/revisions"}],"wp:attachment":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}