{"id":58,"date":"2022-01-05T08:48:54","date_gmt":"2022-01-04T23:48:54","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=58"},"modified":"2022-08-17T15:14:46","modified_gmt":"2022-08-17T06:14:46","slug":"%e3%80%90wordpress%e3%80%91htaccess%e3%81%a7%e3%83%ad%e3%82%b7%e3%82%a2%e3%83%bb%e4%b8%ad%e5%9b%bd%e3%83%bb%e3%82%a6%e3%82%af%e3%83%a9%e3%82%a4%e3%83%8a%e7%ad%89%e3%81%8b%e3%82%89%e3%82%a2%e3%82%af","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/58","title":{"rendered":"\u3010WordPress\u3011htaccess\u3067\u30ed\u30b7\u30a2\u30fb\u4e2d\u56fd\u30fb\u30a6\u30af\u30e9\u30a4\u30ca\u7b49\u304b\u3089\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>IP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3092\u3059\u308b<\/h3>\n<p>\u8ff7\u60d1\u306a\u30b3\u30e1\u30f3\u30c8\u3084\u304a\u554f\u3044\u5408\u308f\u305b\u3001\u30b9\u30d1\u30e0\u30e1\u30fc\u30eb\u3084DoS\u653b\u6483\u306a\u3069\u3092\u56fd\u3054\u3068\u306b\u5272\u308a\u632f\u3089\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u56fd\u3054\u3068\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u300c<a href=\"https:\/\/www.countryipblocks.net\/acl.php\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Country IP Blocks\"><span>Country IP Blocks<\/span><\/a>\u300d\u3068\u3044\u3046\u30b5\u30a4\u30c8\u3067IP\u30a2\u30c9\u30ec\u30b9\u3068\u62d2\u5426\u3059\u308b\u305f\u3081\u306e.htaccess\u306e\u66f8\u5f0f\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3059\u308b\u5bfe\u8c61\u306e\u56fd<\/h3>\n<ul>\n<li>\u30ed\u30b7\u30a2 Russian Federation<\/li>\n<li>\u30a6\u30af\u30e9\u30a4\u30ca Ukraine<\/li>\n<li>\u4e2d\u83ef\u4eba\u6c11\u5171\u548c\u56fd China<\/li>\n<li>\u9999\u6e2f Hong Kong<\/li>\n<li>\u5317\u671d\u9bae Korea, Democratic People&#8217;s Republic Of<\/li>\n<li>\u5927\u97d3\u6c11\u56fd Korea, Republic Of<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u306e\u56fd\u3005\u304b\u3089\u6765\u305f\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h3><span>Country IP Blocks \u306e\u4f7f\u3044\u65b9<\/span><\/h3>\n<p>\u524d\u8ff0\u3057\u305f\u300c<a href=\"https:\/\/www.countryipblocks.net\/acl.php\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Country IP Blocks\"><span>Country IP Blocks<\/span><\/a>\u300d\u306b\u3066\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u56fd\u3092\u9078\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u5de6\u5074\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u4e26\u3093\u3067\u3044\u308b\u300c<strong>Select by Continent or Country<\/strong>\u300d\u3068\u3053\u308d\u304b\u3089\u5bfe\u8c61\u306e\u56fd\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/access-deny-000.png\" alt=\"\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u56fd\u3092\u9078\u629e\u3059\u308b\" width=\"440\" height=\"449\" class=\"alignnone size-full wp-image-60\" \/><\/p>\n<p>\u30c1\u30a7\u30c3\u30af\u3057\u7d42\u3048\u305f\u3089\u4e2d\u592e\u306b\u3042\u308b\u300c<strong>Select Format<\/strong>\u300d\u306e\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u300c<strong>Apache .htaccess Deny<\/strong>\u300d\u3092\u9078\u629e\u3002<\/p>\n<p>\u9078\u629e\u5f8c\u3001\u4e26\u3073\u306e\u4e00\u756a\u4e0b\u306b\u3042\u308b\u300c<strong>Create ACL<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/access-deny-001.png\" alt=\"htaccess\u306e\u66f8\u5f0f\u3092\u9078\u629e\u3059\u308b\" width=\"731\" height=\"502\" class=\"alignnone size-full wp-image-61\" \/><\/p>\n<p>\u300c<strong>Create ACL<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u53f3\u5074\u306b\u300cdeny from IP\u30a2\u30c9\u30ec\u30b9\u300d\u306e\u4e00\u89a7\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u3053\u3053\u306b\u51fa\u529b\u3055\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u304c\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u5bfe\u8c61\u306e\u56fd\u3005\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u66f8\u5f0f\u306fApache2.2\u7cfb\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u30012.4\u7cfb\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f\u9069\u5b9c\u30a8\u30c7\u30a3\u30bf\u306a\u3069\u3067\u6574\u5f62\u3057\u76f4\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/access-deny-002.png\" alt=\"\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u306e\u4e00\u89a7\u3092\u30b3\u30d4\u30fc\u3059\u308b\" width=\"294\" height=\"489\" class=\"alignnone size-full wp-image-62\" \/><\/p>\n<h3>.htaccess\u306b\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306e\u66f8\u5f0f\u3092\u66f8\u304d\u8fbc\u3080<\/h3>\n<h4>.htaccess\u306e\u5834\u6240<\/h4>\n<p>WordPress\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u3070\u3001\u300c<span>wp-content<\/span>\u300d\u300c<span>wp-admin<\/span>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u300c<span>wp-config.php<\/span>\u300d\u30d5\u30a1\u30a4\u30eb\u304c\u7f6e\u304b\u308c\u3066\u3044\u308b\u4e26\u3073\u306b\u300c.htaccess\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>.htaccess\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u7528\u3044\u305f\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306e\u66f8\u304d\u65b9<\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Order allow,deny\r\nallow from all\r\n\u3053\u3053\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304d\u305f\u5185\u5bb9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059<\/code><\/pre>\n<\/div>\n<p>\u300cOrder allow,deny\u300d\u306f\u300c\u6700\u521d\u306f\u8a31\u53ef\uff08allow\uff09\u3092\u66f8\u3044\u3066\u3001\u6b21\u306b\u62d2\u5426\uff08deny\uff09\u3092\u66f8\u304f\u3088\u300d\u3068\u3044\u3046\u5ba3\u8a00\u3002<\/p>\n<p>\u300c<span>allow from all<\/span>\u300d\u306f\u300c\u3068\u3048\u3042\u3048\u305a\u5168\u90e8\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3059\u308b\u3088\u300d\u3068\u3044\u3046\u5efa\u524d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30b3\u30d4\u30fc\u3057\u3066\u304d\u305f\u300cdeny from IP\u30a2\u30c9\u30ec\u30b9\u300d\u3067\u300c\u3053\u306e\u4eba\u305f\u3061\u306f\u8a31\u53ef\u3057\u306a\u3044\u3088\u3001\u3055\u3088\u3046\u306a\u3089\u300d\u3068\u3044\u3046\u7121\u6148\u60b2\u306a\u672c\u97f3\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\r\n# BEGIN WordPress\r\n# END WordPress\r\n\r\nOrder allow,deny\r\nallow from all\r\ndeny from 1.0.1.0\/24\r\ndeny from 1.0.2.0\/23\r\ndeny from 1.0.8.0\/21\r\n\u30fb\r\n\u30fb \u9577\u3044\u306e\u3067\u7701\u7565\r\n\u30fb\r\ndeny from 223.255.248.0\/22\r\ndeny from 223.255.252.0\/23<\/code><\/pre>\n<\/div>\n<p>WordPress\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u3070\u3001\u300c<code># BEGIN WordPress<\/code>\u300d\u300c<code># END WordPress<\/code>\u300d\u306e\u524d\u304b\u5f8c\u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300c<code># BEGIN WordPress<\/code>\u300d\u3068\u300c<code># END WordPress<\/code>\u300d\u306e\u9593\u306f\u3001WordPress\u5074\u304b\u3089\u64cd\u4f5c\u3057\u305f\u969b\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u90e8\u5206\u306b\u306a\u308a\u307e\u3059\u3002\u305b\u3063\u304b\u304f\u8cbc\u308a\u4ed8\u3051\u305f\u3082\u306e\u304c\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u3092\uff01<\/p>\n<p>\u203b\u3042\u307e\u308a\u306b\u3082\u884c\u6570\u304c\u9577\u3044\u5834\u5408\u306f\u3001.htaccess\u3088\u308a\u3082\u3055\u3089\u306b\u4e0a\u306e\u300chttpd.conf\u300d\u3078\u66f8\u304f\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002.htaccess\u306f\u3001\u30a2\u30af\u30bb\u30b9\u304c\u3042\u308b\u305f\u3073\u306b\u51e6\u7406\u304c\u767a\u751f\u3057\u307e\u3059\u304c\u3001httpd.conf\u3067\u306f\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u6642\u306b\u4e00\u5ea6\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3060\u3051\u306a\u306e\u3067\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>IP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3092\u3059\u308b \u8ff7\u60d1\u306a\u30b3\u30e1\u30f3\u30c8\u3084\u304a\u554f\u3044\u5408\u308f\u305b\u3001\u30b9\u30d1\u30e0\u30e1\u30fc\u30eb\u3084DoS\u653b\u6483\u306a\u3069\u3092\u56fd\u3054\u3068\u306b\u5272\u308a\u632f\u3089\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u307e\u305a\u3001\u56fd\u3054\u3068\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u300cCountry IP Blocks\u300d\u3068 <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/58\" title=\"\u3010WordPress\u3011htaccess\u3067\u30ed\u30b7\u30a2\u30fb\u4e2d\u56fd\u30fb\u30a6\u30af\u30e9\u30a4\u30ca\u7b49\u304b\u3089\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3059\u308b\u65b9\u6cd5\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":59,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[20,19,16,17,18],"class_list":{"0":"post-58","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-15","8":"tag-cidr","9":"tag-dos","10":"tag-htaccess","11":"tag-ip","12":"tag-18"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/no-access.jpg","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/59"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}