RewriteEngine on\r\n#\u5b89\u5168\u8bbe\u7f6e \u7981\u6b62\u4ee5\u4e0b\u76ee\u5f55\u8fd0\u884c\u6307\u5b9aphp\u811a\u672c\r\nRewriteCond % !^$\r\nRewriteRule a\/(.*).(php)$ \u2013 [F]\r\nRewriteRule data\/(.*).(php)$ \u2013 [F]\r\nRewriteRule templets\/(.*).(php|htm)$ \u2013 [F]\r\nRewriteRule uploads\/(.*).(php)$ \u2013 [F]<\/code><\/pre>\n\u7136\u540e\u628a.htaccess\u6587\u4ef6\u653e\u5230\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u3002\u91cd\u542fapache\u670d\u52a1\u3002<\/p>\n
\u4f7f\u7528windows\u670d\u52a1\u5668\u7684\uff0c\u7528 web.config \u6587\u4ef6\u6765\u8bbe\u7f6e\uff0c\u8bf7\u786e\u8ba4\u4f60\u7684\u4e3b\u673a\u5df2\u7ecf\u5f00\u542f\u4e86\u4f2a\u9759\u6001\u800c\u4e14\u7f51\u7ad9\u6839\u76ee\u5f55\u6709 web.config \u6587\u4ef6\uff0c\u6709\u8fd9\u4e2a\u6587\u4ef6\u7684\u53ef\u4ee5\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801\u6dfb\u52a0\u5230\u5bf9\u5e94\u7684rules\u5185\u3002<\/p>\n
<\/p>\n
<rule name=\"Block data\" stopProcessing=\"true\">\r\n\t<match url=\"^data\/(.*).php$\" \/>\r\n\t<conditions logicalGrouping=\"MatchAny\">\r\n\t\t<add input=\"{USER_AGENT}\" pattern=\"data\" \/>\r\n\t\t<add input=\"{REMOTE_ADDR}\" pattern=\"\" \/>\r\n\t<\/conditions>\r\n\t<action type=\"AbortRequest\" \/>\r\n<\/rule>\r\n<rule name=\"Block templets\" stopProcessing=\"true\">\r\n\t<match url=\"^templets\/(.*).php$\" \/>\r\n\t<conditions logicalGrouping=\"MatchAny\">\r\n\t\t<add input=\"{USER_AGENT}\" pattern=\"templets\" \/>\r\n\t\t<add input=\"{REMOTE_ADDR}\" pattern=\"\" \/>\r\n\t<\/conditions>\r\n\t<action type=\"AbortRequest\" \/>\r\n<\/rule>\r\n<rule name=\"Block SomeRobot\" stopProcessing=\"true\">\r\n\t<match url=\"^uploads\/(.*).php$\" \/>\r\n\t<conditions logicalGrouping=\"MatchAny\">\r\n\t\t<add input=\"{USER_AGENT}\" pattern=\"SomeRobot\" \/>\r\n\t\t<add input=\"{REMOTE_ADDR}\" pattern=\"\" \/>\r\n\t<\/conditions>\r\n\t<action type=\"AbortRequest\" \/>\r\n<\/rule><\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728\u5b9d\u5854\u9762\u677f\u540e\u53f0-\u7f51\u7ad9\uff0c\u70b9\u51fb\u4f60\u9700\u8981\u8bbe\u7f6e\u7684\u7f51\u7ad9\u8bbe\u7f6e \u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u3002\u627e\u5230\u00a0#PHP-INFO-START\u00a0 PHP\u5f15 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,180],"class_list":["post-1812","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1812"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1812\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}