{"id":158,"date":"2026-09-19T07:45:08","date_gmt":"2026-09-18T22:45:08","guid":{"rendered":"https:\/\/motoki-design.co.jp\/tools\/htpasswd-generator\/"},"modified":"2026-09-28T18:21:43","modified_gmt":"2026-09-28T09:21:43","slug":"htpasswd-generator","status":"publish","type":"page","link":"https:\/\/motoki-design.co.jp\/tools\/htpasswd-generator\/","title":{"rendered":".htpasswd\u751f\u6210\u30c4\u30fc\u30eb\uff08\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\uff09"},"content":{"rendered":"\n<div id=\"wt-htpasswd\" class=\"wt-tool\">\n\t<p class=\"wt-lead\">Apache\u306e<strong>\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\uff08\u30b5\u30a4\u30c8\u306b\u7c21\u6613\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304b\u3051\u308b\u4ed5\u7d44\u307f\uff09<\/strong>\u306b\u5fc5\u8981\u306a <code>.htpasswd<\/code> \u306e\u8a18\u8ff0\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u516c\u958b\u524d\u306b\u96a0\u3057\u305f\u3044\u3068\u304d\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u3082\u4eba\u306b\u3082\u898b\u305b\u305f\u304f\u306a\u3044\u3068\u304d\u306b\u3069\u3046\u305e\u3002<code>.htaccess<\/code> \u306e\u8a18\u8ff0\u3082\u3042\u308f\u305b\u3066\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\t<div class=\"wt-policy\" style=\"border-color:#cfe3cf;background:#f3faf3;margin-top:0\">\n\t\t<p class=\"wt-policy-title\">\ud83d\udd12 \u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051\u3067\u6697\u53f7\u5316\u3055\u308c\u307e\u3059<\/p>\n\t\t<ul>\n\t\t\t<li>\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f<strong>\u30b5\u30fc\u30d0\u30fc\u306b\u4e00\u5207\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093<\/strong>\u3002\u6697\u53f7\u5316\u306f\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\uff08Web Crypto API\uff09\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n\t\t\t<li>\u672c\u756a\u74b0\u5883\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3082\u3001\u305d\u306e\u307e\u307e\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/li>\n\t\t<\/ul>\n\t<\/div>\n\n\t<form class=\"wt-form\" style=\"margin-top:1.2em\" onsubmit=\"return false\">\n\t\t<div class=\"wt-fields\">\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-hp-user\">\u30e6\u30fc\u30b6\u30fc\u540d<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-hp-user\" value=\"preview\" spellcheck=\"false\" autocapitalize=\"off\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-hp-pass\">\u30d1\u30b9\u30ef\u30fc\u30c9<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-hp-pass\" value=\"\" spellcheck=\"false\" autocapitalize=\"off\" placeholder=\"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-hp-algo\">\u6697\u53f7\u5316\u306e\u65b9\u5f0f<\/label>\n\t\t\t\t<select id=\"wt-hp-algo\" class=\"wt-select\" style=\"width:100%\">\n\t\t\t\t\t<option value=\"sha1\">SHA-1\uff08\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u52d5\u304f\u30fb\u63a8\u5968\uff09<\/option>\n\t\t\t\t\t<option value=\"plain\">\u6697\u53f7\u5316\u306a\u3057\uff08\u4e00\u90e8\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u307f\uff09<\/option>\n\t\t\t\t<\/select>\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-hp-path\">.htpasswd \u306e\u8a2d\u7f6e\u30d1\u30b9\uff08.htaccess \u7528\uff09<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-hp-path\" value=\"\/home\/username\/.htpasswd\" spellcheck=\"false\">\n\t\t\t\t<span class=\"wt-note\" style=\"display:block;margin-top:.3em\">\u521d\u671f\u5024\u306f\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08public_html\uff09\u306e\u5916\u306e\u4f8b\u3067\u3059\u3002\u304a\u4f7f\u3044\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u7d76\u5bfe\u30d1\u30b9\u306b\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/span>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"wt-row\" style=\"margin-top:1em\">\n\t\t\t<button class=\"wt-btn\" type=\"button\" id=\"wt-hp-run\">\u751f\u6210\u3059\u308b<\/button>\n\t\t<\/div>\n\t<\/form>\n\n\t<div class=\"wt-status\" hidden><\/div>\n\t<div class=\"wt-result\" hidden><\/div>\n\n\t<div class=\"wt-disclaimer\">\n\t\t<strong>\u4f7f\u3046\u3068\u304d\u306e\u6ce8\u610f<\/strong><br>\n\t\t<code>.htpasswd<\/code> \u306f<strong>\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5916<\/strong>\uff08<code>public_html<\/code> \u3088\u308a\u4e0a\u306e\u968e\u5c64\uff09\u306b\u7f6e\u304f\u306e\u304c\u539f\u5247\u3067\u3059\u3002\u3084\u3080\u3092\u5f97\u305a\u4e2d\u306b\u7f6e\u304f\u5834\u5408\u306f\u3001<code>.htaccess<\/code> \u3067\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f <code>.htaccess<\/code> \u306e\u8a18\u8ff0\u306b\u306f<strong>\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u7d76\u5bfe\u30d1\u30b9<\/strong>\u304c\u5fc5\u8981\u3067\u3059\uff08URL\u3067\u306f\u3042\u308a\u307e\u305b\u3093\uff09\u3002\u30d1\u30b9\u306f\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3084FTP\u30bd\u30d5\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>\n\t\t<strong>\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306f\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u901a\u4fe1\u3067\u306f\u4e38\u898b\u3048<\/strong>\u3067\u3059\u3002\u5fc5\u305aHTTPS\u306e\u30b5\u30a4\u30c8\u3067\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002\n\t<\/div>\n\n\t<div class=\"wt-faq\">\n\t\t<details>\n\t\t\t<summary>bcrypt \u3084 APR1-MD5 \u306f\u4f7f\u3048\u307e\u305b\u3093\u304b\uff1f<\/summary>\n\t\t\t<p>\u3053\u306e\u30c4\u30fc\u30eb\u306f<strong>\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051\u3067\u5b8c\u7d50\u3055\u305b\u308b\u3053\u3068\u3092\u512a\u5148<\/strong>\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u6a19\u6e96\u6a5f\u80fd\u3067\u5b89\u5168\u306b\u8a08\u7b97\u3067\u304d\u308bSHA-1\u65b9\u5f0f\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002Apache\u306e <code>htpasswd<\/code> \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u74b0\u5883\u306a\u3089 <code>htpasswd -B<\/code> \u3067bcrypt\u3092\u4f7f\u3046\u307b\u3046\u304c\u3088\u308a\u5f37\u56fa\u3067\u3059\u3002\u305f\u3060\u3057\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u4e3b\u306a\u7528\u9014\u306f\u300c\u516c\u958b\u524d\u306e\u30b5\u30a4\u30c8\u3092\u96a0\u3059\u300d\u3053\u3068\u3067\u3042\u308a\u3001\u305d\u306e\u7bc4\u56f2\u3067\u306fSHA-1\u65b9\u5f0f\u3067\u5b9f\u7528\u4e0a\u306e\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u60c5\u5831\u3092\u5b88\u308b\u76ee\u7684\u306b\u306f\u3001\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3067\u306f\u306a\u304f\u672c\u6765\u306e\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>WordPress\u3067\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3092\u304b\u3051\u308b\u3068\u4e0d\u5177\u5408\u304c\u51fa\u307e\u3059<\/summary>\n\t\t\t<p>\u3088\u304f\u3042\u308b\u306e\u304c<strong>\u7ba1\u7406\u753b\u9762\u306e\u975e\u540c\u671f\u901a\u4fe1\uff08admin-ajax.php\uff09\u3084REST API\u304c\u5f3e\u304b\u308c\u308b<\/strong>\u30b1\u30fc\u30b9\u3067\u3059\u3002\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u304c\u4fdd\u5b58\u3067\u304d\u306a\u3044\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u52d5\u304b\u306a\u3044\u3068\u3044\u3063\u305f\u75c7\u72b6\u304c\u51fa\u307e\u3059\u3002<code>.htaccess<\/code> \u306b\u9664\u5916\u8a2d\u5b9a\u3092\u66f8\u304f\u304b\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\uff08WP Basic Auth\u7cfb\uff09\u3084\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u753b\u9762\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u6a5f\u80fd\u3092\u4f7f\u3046\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc\u3084ConoHa\u306b\u306f\u5c02\u7528\u306e\u8a2d\u5b9a\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u8f09\u305b\u305f\u304f\u306a\u3044\u3060\u3051\u306a\u3089\uff1f<\/summary>\n\t\t\t<p>\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306f<strong>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u5bfe\u7b56\u3068\u3057\u3066\u306f\u6700\u3082\u78ba\u5b9f<\/strong>\u3067\u3059\uff08\u305d\u3082\u305d\u3082\u4e2d\u8eab\u3092\u898b\u3089\u308c\u306a\u3044\u305f\u3081\uff09\u3002<code>noindex<\/code> \u3084 robots.txt \u306f\u300c\u304a\u9858\u3044\u300d\u3067\u3057\u304b\u306a\u304f\u3001\u65e2\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u305f\u5185\u5bb9\u304c\u6d88\u3048\u308b\u307e\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u516c\u958b\u524d\u306e\u30c6\u30b9\u30c8\u74b0\u5883\u306b\u306f\u3001\u8ff7\u308f\u305a\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3092\u304b\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\t\t<\/details>\n\t<\/div>\n<\/div>\n\n<div class=\"wt-tool\"><div class=\"wt-policy\"><p class=\"wt-policy-title\">\ud83d\udd12 \u8abf\u3079\u305f\u5185\u5bb9\u306f\u8a18\u9332\u30fb\u516c\u958b\u3057\u307e\u305b\u3093<\/p><ul><li><strong>\u691c\u7d22\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u30fb\u4e00\u89a7\u5316\u30fb\u516c\u958b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8abf\u67fb\u7d50\u679c\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5316\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3001\u4ed6\u306e\u5229\u7528\u8005\u306b\u898b\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u4e00\u5207\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li><strong>\u691c\u7d22\u5c65\u6b74\u3092\u6b8b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8ab0\u304c\u4f55\u3092\u8abf\u3079\u305f\u304b\u3092\u7d10\u3065\u3051\u3066\u84c4\u7a4d\u3059\u308b\u3053\u3068\u306f\u3057\u307e\u305b\u3093\u3002\u4f1a\u54e1\u767b\u9332\u30fb\u30ed\u30b0\u30a4\u30f3\u3082\u4e0d\u8981\u3067\u3059\u3002<\/li><li><strong>\u7b2c\u4e09\u8005\u306b\u63d0\u4f9b\u30fb\u8ca9\u58f2\u3057\u307e\u305b\u3093\u3002<\/strong>\u55b6\u696d\u30ea\u30b9\u30c8\u3084\u5e83\u544a\u76ee\u7684\u3067\u306e\u5229\u7528\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u3092\u6291\u3048\u308b\u305f\u3081\u3001<strong>\u5224\u5b9a\u7d50\u679c\u306e\u307f\u6700\u59271\u6642\u9593\u306e\u4e00\u6642\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>\u306b\u4fdd\u6301\u3057\u3001\u6642\u9593\u306e\u7d4c\u904e\u3067\u81ea\u52d5\u7684\u306b\u6d88\u3048\u307e\u3059\u3002\u9023\u7d9a\u30a2\u30af\u30bb\u30b9\u306e\u5236\u9650\u7528\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092<strong>\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u5024<\/strong>\u3092\u6700\u592710\u5206\u9593\u3060\u3051\u4fdd\u6301\u3057\u307e\u3059\uff08\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f\u4fdd\u5b58\u3057\u307e\u305b\u3093\uff09\u3002<\/li><li>\u8abf\u3079\u305f\u5bfe\u8c61\u306f\u5171\u6709\u7528\u306bURL\u306e<code>#<\/code>\u4ee5\u964d\u306b\u4ed8\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u90e8\u5206\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u306b\u3082\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002<\/li><\/ul><\/div><\/div>\n\n<script>\n(function () {\n\tvar root = document.getElementById('wt-htpasswd');\n\tif (!root || !window.WT) return;\n\tvar W = WT;\n\tvar resultBox = root.querySelector('.wt-result');\n\tvar statusBox = root.querySelector('.wt-status');\n\n\tfunction setStatus(msg, isError) {\n\t\tif (!msg) { statusBox.hidden = true; return; }\n\t\tstatusBox.hidden = false;\n\t\tstatusBox.className = 'wt-status' + (isError ? ' is-error' : '');\n\t\tstatusBox.textContent = msg;\n\t}\n\n\t\/\/ Apache\u306e {SHA} \u5f62\u5f0f\uff1aSHA-1\u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u3092Base64\u306b\u3057\u305f\u3082\u306e\n\tfunction shaCrypt(password) {\n\t\tvar bytes = new TextEncoder().encode(password);\n\t\treturn crypto.subtle.digest('SHA-1', bytes).then(function (buf) {\n\t\t\tvar arr = new Uint8Array(buf);\n\t\t\tvar bin = '';\n\t\t\tfor (var i = 0; i < arr.length; i++) bin += String.fromCharCode(arr[i]);\n\t\t\treturn '{SHA}' + btoa(bin);\n\t\t});\n\t}\n\n\tfunction build() {\n\t\tvar user = document.getElementById('wt-hp-user').value.trim();\n\t\tvar pass = document.getElementById('wt-hp-pass').value;\n\t\tvar algo = document.getElementById('wt-hp-algo').value;\n\t\tvar path = document.getElementById('wt-hp-path').value.trim() || '\/path\/to\/.htpasswd';\n\n\t\tif (!user || !pass) {\n\t\t\tsetStatus('\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002', true);\n\t\t\tresultBox.hidden = true;\n\t\t\treturn;\n\t\t}\n\t\tif (\/[:\\s]\/.test(user)) {\n\t\t\tsetStatus('\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u30b3\u30ed\u30f3\u3084\u7a7a\u767d\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002', true);\n\t\t\tresultBox.hidden = true;\n\t\t\treturn;\n\t\t}\n\t\tsetStatus('');\n\n\t\tvar hashPromise = (algo === 'plain')\n\t\t\t? Promise.resolve(pass)\n\t\t\t: shaCrypt(pass);\n\n\t\thashPromise.then(function (hash) {\n\t\t\tvar line = user + ':' + hash;\n\t\t\tvar htaccess = 'AuthType Basic\\n' +\n\t\t\t\t'AuthName \"Restricted Area\"\\n' +\n\t\t\t\t'AuthUserFile ' + path + '\\n' +\n\t\t\t\t'Require valid-user';\n\n\t\t\tvar html = W.head('ok', '\u751f\u6210\u7d50\u679c', W.esc('\u30e6\u30fc\u30b6\u30fc\u540d: ' + user), []);\n\n\t\t\thtml += '<h3 class=\"wt-h\">.htpasswd \u306b\u66f8\u304f\u5185\u5bb9<\/h3>';\n\t\t\thtml += '<div class=\"wt-toolbar\"><button type=\"button\" class=\"wt-mini\" id=\"wt-hp-c1\">\u30b3\u30d4\u30fc<\/button>' +\n\t\t\t\t'<button type=\"button\" class=\"wt-mini\" id=\"wt-hp-d1\">.htpasswd \u3068\u3057\u3066\u4fdd\u5b58<\/button><\/div>';\n\t\t\thtml += '<pre class=\"wt-code\">' + W.esc(line) + '<\/pre>';\n\n\t\t\thtml += '<h3 class=\"wt-h\">.htaccess \u306b\u66f8\u304f\u5185\u5bb9<\/h3>';\n\t\t\thtml += '<div class=\"wt-toolbar\"><button type=\"button\" class=\"wt-mini\" id=\"wt-hp-c2\">\u30b3\u30d4\u30fc<\/button><\/div>';\n\t\t\thtml += '<pre class=\"wt-code\">' + W.esc(htaccess) + '<\/pre>';\n\t\t\thtml += '<p class=\"wt-note\">\u8a8d\u8a3c\u3092\u304b\u3051\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b <code>.htaccess<\/code> \u3092\u7f6e\u304d\u3001\u4e0a\u306e\u8a18\u8ff0\u3092\u8ffd\u8a18\u3057\u3066\u304f\u3060\u3055\u3044\u3002' +\n\t\t\t\t'<code>AuthUserFile<\/code> \u306b\u306f\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u7d76\u5bfe\u30d1\u30b9\u3092\u66f8\u304d\u307e\u3059\u3002<code>public_html<\/code> \u306a\u3069\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3088\u308a\u4e0a\u306e\u968e\u5c64\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>';\n\n\t\t\thtml += W.checks([\n\t\t\t\t{ status: 'ok', title: '\u8a2d\u7f6e\u5834\u6240\u306e\u78ba\u8a8d', note: '.htpasswd \u306f\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5916\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u4e2d\u306b\u7f6e\u304f\u5834\u5408\u306f\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62\u3059\u308b\u8a2d\u5b9a\u3092\u5fd8\u308c\u305a\u306b\u3002' },\n\t\t\t\t{ status: 'warn', title: 'HTTPS\u3067\u904b\u7528\u3057\u3066\u304f\u3060\u3055\u3044', note: '\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306eID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u901a\u4fe1\u3067\u306f\u5bb9\u6613\u306b\u8aad\u307f\u53d6\u3089\u308c\u307e\u3059\u3002' },\n\t\t\t\t{ status: 'na', title: 'Nginx\u3092\u304a\u4f7f\u3044\u306e\u5834\u5408', note: '.htaccess \u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u306b auth_basic \u3068 auth_basic_user_file \u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08.htpasswd \u306e\u4e2d\u8eab\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\uff09\u3002' }\n\t\t\t]);\n\n\t\t\tresultBox.innerHTML = html;\n\t\t\tresultBox.hidden = false;\n\n\t\t\tdocument.getElementById('wt-hp-c1').addEventListener('click', function () { W.copy(line, this); });\n\t\t\tdocument.getElementById('wt-hp-c2').addEventListener('click', function () { W.copy(htaccess, this); });\n\t\t\tdocument.getElementById('wt-hp-d1').addEventListener('click', function () {\n\t\t\t\tW.download('.htpasswd', line + '\\n', 'text\/plain;charset=utf-8');\n\t\t\t});\n\t\t}).catch(function () {\n\t\t\tsetStatus('\u6697\u53f7\u5316\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002', true);\n\t\t});\n\t}\n\n\tdocument.getElementById('wt-hp-run').addEventListener('click', build);\n\t['wt-hp-user', 'wt-hp-pass', 'wt-hp-algo', 'wt-hp-path'].forEach(function (id) {\n\t\tvar el = document.getElementById(id);\n\t\tel.addEventListener('input', build);\n\t\tel.addEventListener('change', build);\n\t});\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Apache\u306e\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\uff08\u30b5\u30a4\u30c8\u306b\u7c21\u6613\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304b\u3051\u308b\u4ed5\u7d44\u307f\uff09\u306b\u5fc5\u8981\u306a .htpasswd \u306e\u8a18\u8ff0\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u516c\u958b\u524d\u306b\u96a0\u3057\u305f\u3044\u3068\u304d\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u3082\u4eba\u306b\u3082\u898b\u305b\u305f\u304f\u306a\u3044\u3068\u304d\u306b\u3069\u3046\u305e\u3002.htaccess  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ssp_meta_description":"Apache\u306e\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a .htpasswd \u3068 .htaccess \u306e\u8a18\u8ff0\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u516c\u958b\u524d\u306e\u30c6\u30b9\u30c8\u30b5\u30a4\u30c8\u3092\u96a0\u3059\u3068\u304d\u306b\u3002\u6697\u53f7\u5316\u306f\u30d6\u30e9\u30a6\u30b6\u5185\u3067\u884c\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u9001\u4fe1\u3057\u307e\u305b\u3093\u3002\u4f1a\u54e1\u767b\u9332\u4e0d\u8981\u3002","ssp_meta_title":"htpasswd\u751f\u6210\uff5c\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3092\u7121\u6599\u3067\u4f5c\u6210","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","footnotes":""},"class_list":["post-158","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/158\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/158\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/media?parent=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}