{"id":180134,"date":"2020-10-30T01:42:40","date_gmt":"2020-10-29T17:42:40","guid":{"rendered":"http:\/\/4563.org\/?p=180134"},"modified":"2020-10-30T01:42:40","modified_gmt":"2020-10-29T17:42:40","slug":"%e5%85%b3%e4%ba%8e-nginx-%e7%9a%84-deny-all-%e8%bf%94%e5%9b%9e-403","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=180134","title":{"rendered":"\u5173\u4e8e nginx \u7684 deny all \u8fd4\u56de 403"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5173\u4e8e nginx \u7684 deny all \u8fd4\u56de 403               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yang9w <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u600e\u4e48\u6837\u5199\u624d\u80fd\u4f7f deny all \u8fd4\u56de 444 \u5462\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3942458\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : taolu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             error_page 403 \/444.html;<\/p>\n<p>location = \/444.html {<br \/> return 444;<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942459\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AstroProfundis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e5f\u53ef\u4ee5\u4e0d\u5199 deny all; \u800c\u76f4\u63a5\u5199 return 444;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942460\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yang9w <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @AstroProfundis <br \/>\u6211\u7528\u7684\u662f CF \u8bbf\u95ee\uff0c\u7136\u540e\u7981\u6b62\u975e CF \u8bbf\u95ee\u7684 IP\uff0c\u4f46\u662f\u975e CF \u8bbf\u95ee\u7684 IP \u5f97\u5230\u8fd4\u56de\u662f 403.\u60f3\u8981\u5f04\u6210\u8fd4\u56de 444.\u600e\u4e48\u6539<br \/>location \/ {<br \/> allow 173.245.48.0\/20;<br \/> allow 103.21.244.0\/22;<br \/> allow 103.22.200.0\/22;<br \/> allow 103.31.4.0\/22;<br \/> allow 141.101.64.0\/18;<br \/> allow 108.162.192.0\/18;<br \/> allow 190.93.240.0\/20;<br \/> allow 188.114.96.0\/20;<br \/> allow 197.234.240.0\/22;<br \/> allow 198.41.128.0\/17;<br \/> allow 162.158.0.0\/15;<br \/> allow 104.16.0.0\/12;<br \/> allow 172.64.0.0\/13;<br \/> allow 131.0.72.0\/22;<br \/> allow 2400:cb00::\/32;<br \/> allow 2606:4700::\/32;<br \/> allow 2803:f800::\/32;<br \/> allow 2405:b500::\/32;<br \/> allow 2405:8100::\/32;<br \/> allow 2a06:98c0::\/29;<br \/> allow 2c0f:f248::\/32;<br \/> deny all;<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942461\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yang9w <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u6ca1\u6709\u5199\u6cd5\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e nginx \u7684 deny a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180134"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180134"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180134\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180134"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}