{"id":166,"date":"2021-03-11T16:42:09","date_gmt":"2021-03-11T07:42:09","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=166"},"modified":"2021-05-04T16:33:14","modified_gmt":"2021-05-04T07:33:14","slug":"post-166","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/11\/166\/","title":{"rendered":"\u30b5\u30fc\u30d0\u7528Raspberry Pi \u306e\u8a2d\u5b9a7"},"content":{"rendered":"\n<p>WordPress \u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/marketing-hack.com\/article\/wordpress-hardening-1st-step\/\">https:\/\/marketing-hack.com\/article\/wordpress-hardening-1st-step\/<\/a><br>\u3000\u9762\u5012\u305d\u3046\u3060\u3051\u3069\u3001\u3084\u3063\u3066\u307f\u307e\u3059\u3002\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u3088\u304f\u8aad\u3093\u3060\u3068\u3053\u308d\u3001\u6700\u7d42\u7684\u306b\u306f\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u308d\u3002<\/li><li>\u30b3\u30e1\u30f3\u30c8\u6a5f\u80fd\u306f\u4f7f\u3046\u306a\u3002<\/li><\/ul>\n\n\n\n<p>\u3060\u3063\u3066\u3002\u624b\u9593\u3092\u639b\u3051\u3066\u8a2d\u5b9a\u3057\u3066\u3001\u3055\u3089\u306b\u30c1\u30a7\u30c3\u30af\u3057\u308d\u3063\u3066\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n\n<p>\u3000\u307e\u3042\u3001\u4f01\u696d\u306e\u30b5\u30a4\u30c8\u306a\u3089\u305d\u3053\u307e\u3067\u624b\u9593\u3092\u639b\u3051\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u5fc5\u8981\u306f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306a\u3089 MovableType \u4f7f\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u3046\u306a\u30fb\u30fb\u30fb\u3002<br>\u3000\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u305d\u3053\u307e\u3067\u624b\u9593\u304b\u3051\u3066\u3089\u308c\u307e\u305b\u3093\u3002<br>\u3000\u3058\u3083\u3001\u3069\u3046\u3059\u308b\u304b\uff1f<br>\u3000\u306a\u306b\u3082\u3057\u306a\u3044\u8a33\u306b\u306f\u3044\u304b\u306a\u3044\u306e\u3067\u3001.htaccess \u306b\u3088\u308b\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3092\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/www.vektor-inc.co.jp\/post\/basic-auth\/\">https:\/\/www.vektor-inc.co.jp\/post\/basic-auth\/<\/a><\/p>\n\n\n\n<p>\u3000\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u4f5c\u6210<\/p>\n\n\n\n<p class=\"console\">$ htpasswd -b -c -m .htpasswd \u30e6\u30fc\u30b6\u540d \u30d1\u30b9\u30ef\u30fc\u30c9<\/p>\n\n\n\n<p>\u3000\u4f8b\u3048\u3070\u3001wordpress \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b wp-login.php \u306b\u304b\u3051\u305f\u3044\u306a\u3089\u3001WordPress \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e .htaccess \u306b\u6b21\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"file\">&lt;Files wp-login.php&gt;<br>&nbsp;&nbsp;AuthType Basic<br>&nbsp;&nbsp;AuthUserFile \u30b5\u30fc\u30d0\u4e0a\u306e\u30d1\u30b9\/.htpasswd<br>&nbsp;&nbsp;AuthName &#8220;Please enter your ID and password&#8221;<br>&nbsp;&nbsp;require valid-user<br>&nbsp;&nbsp;require ip \u8a8d\u8a3c\u7121\u3057\u3067\u901a\u3057\u305f\u3044\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9<br>&lt;\/Files&gt;<\/p>\n\n\n\n<p>\u3000\u6700\u5f8c\u306e require ip \u306f\u5fc5\u8981\u306a\u3051\u308c\u3070\u66f8\u304b\u306a\u304f\u3066\u826f\u3044\u3067\u3059\u3002<br>\u3000\u307e\u305f\u3001wp-admin \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5168\u4f53\u306b\u8a8d\u8a3c\u3092\u304b\u3051\u305f\u3051\u308c\u3070\u3001wp-admin \u306e .htaccess \u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"file\">AuthType Basic<br>AuthUserFile \u30b5\u30fc\u30d0\u4e0a\u306e\u30d1\u30b9\/.htpasswd<br>AuthName &#8220;Please enter your ID and password&#8221;<br>Require valid-user<br>require ip \u8a8d\u8a3c\u7121\u3057\u3067\u901a\u3057\u305f\u3044\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9<br>&lt;FilesMatch &#8220;(admin-ajax.php)$&#8221;&gt;<br>&nbsp;&nbsp;Satisfy Any<br>&nbsp;&nbsp;Order allow,deny<br>&nbsp;&nbsp;Allow from all<br>&nbsp;&nbsp;Deny from none<br>&lt;\/FilesMatch&gt;<\/p>\n\n\n\n<p>\u3000\u306a\u304a\u3001\u3053\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3082\u3001.htaccess \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3068\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002<br>\u3000Apache \u306e\u30b5\u30a4\u30c8\u8a2d\u5b9a\u3067\u3001AllowOverride None \u3060\u3068 .htaccess \u306f\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3000\u30a2\u30af\u30bb\u30b9\u306e\u90fd\u5ea6\u3001.htaccess \u3092\u63a2\u3057\u306b\u884c\u304f\u306e\u3067\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u7121\u52b9\u306b\u3057\u3066\u3044\u308b\u3068\u3001\u3053\u308c\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<br>\u3000&lt;Directory\uff1e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u3001WordPress \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3051\u3001AllowOverride All \u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u3001\u3053\u308c\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u3002 \u53c2\u8003\uff1ahttps:\/\/marketing-hack.com\/article\/wordpress-hardening-1st-step\/\u3000\u9762\u5012\u305d\u3046\u3060\u3051\u3069\u3001\u3084\u3063\u3066\u307f\u307e\u3059\u3002\u3084\u3063\u3066\u307f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":2,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/166\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}