{"id":2240,"date":"2014-08-26T11:57:22","date_gmt":"2014-08-26T02:57:22","guid":{"rendered":"http:\/\/ksrd.jp\/pc_club\/wordpress\/?p=2240"},"modified":"2014-10-03T11:46:29","modified_gmt":"2014-10-03T02:46:29","slug":"basic%e8%aa%8d%e8%a8%bc%ef%bc%88-htpasswd%e3%81%ae%e5%a0%b4%e6%89%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/ksrd.jp\/pc_club\/wordpress\/2014\/08\/basic%e8%aa%8d%e8%a8%bc%ef%bc%88-htpasswd%e3%81%ae%e5%a0%b4%e6%89%80%ef%bc%89\/","title":{"rendered":"Basic\u8a8d\u8a3c\uff08.htpasswd\u306e\u5834\u6240\uff09"},"content":{"rendered":"<p><span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3010.htpasswd\u3011\u304c\u5b58\u5728\u3059\u308b\u5834\u6240\uff08\u7d76\u5bfe\u30d1\u30b9\uff09\u3092\u6c42\u3081\u308b<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3010.htaccess\u3011\u306b\u3010.htpasswd\u3011\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u3092\u8a18\u8ff0\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b<\/span><\/span><\/p>\n<p><span style=\"font-size: 1rem; line-height: 1.714285714;\"><strong>\uff08\uff11\uff09\uff30\uff28\uff30\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b<\/strong><br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u30fb\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u7528\u610f\u3059\u308b<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000&lt;?php<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$cwd = getcwd();<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$reqfile = strrchr($_SERVER[&#8220;REQUEST_URI&#8221;], &#8220;\/&#8221;);<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$urilen = strlen($_SERVER[&#8220;REQUEST_URI&#8221;]);<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$reqfilelen = strlen($reqfile);<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$reqdir = substr( $_SERVER[&#8220;REQUEST_URI&#8221;], 0, $urilen &#8211; $reqfilelen );<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000$current = $_SERVER[&#8220;HTTP_HOST&#8221;] . $reqdir;<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000echo &#8220;&lt;p?&gt;\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7d76\u5bfe\u30d1\u30b9\uff1a$cwd&lt;\/p?&gt;&#8221;;<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000echo &#8220;&lt;p?&gt;\u30ab\u30ec\u30f3\u30c8URL\uff1a http:\/\/$current\/&lt;\/p?&gt;&#8221;;<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u3000\u3000?&gt;<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 1rem; line-height: 1.714285714;\"><strong>\uff08\uff12\uff09\u7d76\u5bfe\u30d1\u30b9\u3092\u8868\u793a\u3055\u305b\u308b<\/strong><br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u30fb\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u3010xxxxxxxx.php\u3011\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u30fb\u8abf\u3079\u305f\u3044\u30b5\u30fc\u30d0\u30fc\u306e\u30d5\u30a9\u30eb\u30c0\u914d\u4e0b\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u8a2d\u7f6e\u3059\u308b<br \/>\n<span style=\"font-size: 1rem; line-height: 1.714285714;\">\u3000\u3000\u30fb\u624b\u52d5\u3067\u5f53\u8a72\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3059\u308b<\/span><\/span><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010.htpasswd\u3011\u304c\u5b58\u5728\u3059\u308b\u5834\u6240\uff08\u7d76\u5bfe\u30d1\u30b9\uff09\u3092\u6c42\u3081\u308b \u3000\u3000\u3010.htaccess\u3011\u306b\u3010.htpasswd\u3011\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u3092\u8a18\u8ff0\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b \uff08\uff11\uff09\uff30\uff28\uff30\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b \u3000\u3000\u30fb\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u7528\u610f\u3059\u308b \u3000\u3000 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,38],"tags":[13],"class_list":["post-2240","post","type-post","status-publish","format-standard","hentry","category-21","category-38","tag-13"],"_links":{"self":[{"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/posts\/2240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/comments?post=2240"}],"version-history":[{"count":0,"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/posts\/2240\/revisions"}],"wp:attachment":[{"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/media?parent=2240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/categories?post=2240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ksrd.jp\/pc_club\/wordpress\/wp-json\/wp\/v2\/tags?post=2240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}