{"id":16042,"date":"2024-10-28T20:41:41","date_gmt":"2024-10-28T12:41:41","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=16042"},"modified":"2025-07-27T16:58:28","modified_gmt":"2025-07-27T08:58:28","slug":"%e5%9b%a0%e6%9e%9c%e4%b8%9a%e5%8a%9b%ef%bc%9a%e4%ba%ba%e7%94%9f%e7%9a%84%e6%97%a0%e5%bd%a2%e6%8e%a8%e6%89%8b-3","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=16042","title":{"rendered":"\u57df\u540d\u53ef\u89c6\u5316\u5c55\u793a\u9762\u677f"},"content":{"rendered":"<h2 id=\"%E9%A1%B9%E7%9B%AE%E7%AE%80%E4%BB%8B\">\u9879\u76ee\u7b80\u4ecb<\/h2>\n<p>\u8fd9\u662f\u4e00\u4e2a\u7b80\u6d01\u9ad8\u6548\u7684\u57df\u540d\u53ef\u89c6\u5316\u5c55\u793a\u9762\u677f\uff0c\u57fa\u4e8eCloudflare Workers\u6784\u5efa\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u754c\u9762\uff0c\u8ba9\u7528\u6237\u80fd\u591f\u4e00\u76ee\u4e86\u7136\u5730\u67e5\u770b\u4ed6\u4eec\u7684\u57df\u540d\u7ec4\u5408\uff0c\u5305\u62ec\u5404\u4e2a\u57df\u540d\u7684\u72b6\u6001\u3001\u6ce8\u518c\u5546\u3001\u6ce8\u518c\u65e5\u671f\u3001\u8fc7\u671f\u65e5\u671f\u548c\u4f7f\u7528\u8fdb\u5ea6\u3002<\/p>\n<h2 id=\"%E4%B8%BB%E8%A6%81%E7%89%B9%E6%80%A7\">\u4e3b\u8981\u7279\u6027<\/h2>\n<p><strong>\u521d\u7ea7\u7248\u672c<\/strong><\/p>\n<ul>\n<li>\u6e05\u6670\u5c55\u793a\u57df\u540d\u5217\u8868\u53ca\u5176\u5173\u952e\u4fe1\u606f\uff1a\u57df\u540d\u72b6\u6001\u3001\u6ce8\u518c\u5546\u3001\u6ce8\u518c\u65e5\u671f\u548c\u8fc7\u671f\u65e5\u671f<\/li>\n<li>\u53ef\u89c6\u5316\u5448\u73b0\u57df\u540d\u4f7f\u7528\u8fdb\u5ea6\u6761<\/li>\n<li>\u81ea\u52a8\u8ba1\u7b97\u5e76\u663e\u793a\u57df\u540d\u5269\u4f59\u6709\u6548\u5929\u6570<\/li>\n<li>\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff0c\u5b8c\u7f8e\u9002\u914d\u684c\u9762\u548c\u79fb\u52a8\u8bbe\u5907<\/li>\n<li>\u8f7b\u91cf\u7ea7\u5b9e\u73b0\uff0c\u5feb\u901f\u52a0\u8f7d<\/li>\n<li><strong>\u652f\u6301\u8f93\u5165\u81ea\u5b9a\u4e49\u57df\u540d<\/strong><\/li>\n<\/ul>\n<p><strong>\u9ad8\u7ea7\u7248\u672c<\/strong><\/p>\n<ul>\n<li>\u6e05\u6670\u5c55\u793a\u57df\u540d\u5217\u8868\u53ca\u5176\u5173\u952e\u4fe1\u606f\uff1a\u57df\u540d\u72b6\u6001\u3001\u6ce8\u518c\u5546\u3001\u6ce8\u518c\u65e5\u671f\u3001\u8fc7\u671f\u65e5\u671f\u548c<strong>\u5269\u4f59\u5929\u6570<\/strong><\/li>\n<li>\u53ef\u89c6\u5316\u5448\u73b0\u57df\u540d\u4f7f\u7528\u8fdb\u5ea6\u6761<\/li>\n<li>\u81ea\u52a8\u8ba1\u7b97\u5e76\u663e\u793a\u57df\u540d\u5269\u4f59\u6709\u6548\u5929\u6570<\/li>\n<li>\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff0c\u5b8c\u7f8e\u9002\u914d\u684c\u9762\u548c\u79fb\u52a8\u8bbe\u5907<\/li>\n<li>\u8f7b\u91cf\u7ea7\u5b9e\u73b0\uff0c\u5feb\u901f\u52a0\u8f7d<\/li>\n<li><strong>UI\u8fdb\u4e00\u6b65\u7f8e\u5316\uff0c\u98ce\u683c\u7edf\u4e00<\/strong><\/li>\n<li><strong>\u524d\u53f0\u548c\u540e\u53f0\u5206\u79bb\uff0c\u652f\u6301\u5bc6\u7801\u4fdd\u62a4<\/strong><\/li>\n<li><strong>\u901a\u8fc7 Cloudflare API \u81ea\u52a8\u83b7\u53d6\u57df\u540d\u5217\u8868<\/strong><\/li>\n<li><strong>\u96c6\u6210\u81ea\u5efa WHOIS \u4ee3\u7406\u670d\u52a1\uff0c\u81ea\u52a8\u83b7\u53d6\u9876\u7ea7\u57df\u540d\u4fe1\u606f\u3001\u4e8c\u7ea7\u57df\u540d\u7684\u6ce8\u518c\u65e5\u671f<\/strong><\/li>\n<li><strong>\u652f\u6301\u624b\u52a8\u7f16\u8f91\u4e8c\u7ea7\u57df\u540d\u4fe1\u606f<\/strong><\/li>\n<li><strong>\u652f\u6301\u8f93\u5165\u81ea\u5b9a\u4e49\u57df\u540d<\/strong><\/li>\n<\/ul>\n<h2 id=\"%E6%8A%80%E6%9C%AF%E5%AE%9E%E7%8E%B0\">\u6280\u672f\u5b9e\u73b0<\/h2>\n<ul>\n<li>\u524d\u7aef\uff1aHTML5, CSS3, JavaScript<\/li>\n<li>\u540e\u7aef\uff1aCloudflare Workers, KV \u5b58\u50a8<\/li>\n<li>API \u96c6\u6210\uff1aCloudflare API, \u81ea\u5efa WHOIS \u4ee3\u7406\u670d\u52a1<\/li>\n<\/ul>\n<h2 id=\"%E4%B8%AA%E6%80%A7%E5%8C%96%E9%83%A8%E5%88%86\">\u4e2a\u6027\u5316\u90e8\u5206<\/h2>\n<ul>\n<li>\u53ef\u4fee\u6539\u00a0<code>CUSTOM_TITLE<\/code>\u00a0\u53d8\u91cf\u6765\u81ea\u5b9a\u4e49\u9762\u677f\u6807\u9898<\/li>\n<li>\u53ef\u4ee5\u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\u5230 Worker\uff0c\u4ee5\u63d0\u9ad8\u8bbf\u95ee\u7a33\u5b9a\u6027<\/li>\n<\/ul>\n<h1 id=\"domainkeeper---%E5%88%9D%E7%BA%A7%E7%89%88%E6%9C%AC%EF%BC%8C%E5%8F%AA%E8%83%BD%E8%87%AA%E5%AE%9A%E4%B9%89%E8%BE%93%E5%85%A5%EF%BC%8C%E6%9B%B4%E7%81%B5%E6%B4%BB%EF%BC%8C%E4%BD%86%E4%B8%8D%E9%AB%98%E6%95%88%EF%BC%8C%E9%80%82%E7%94%A8%E4%BA%8E%E5%B0%91%E6%95%B0%E5%9F%9F%E5%90%8D\">DomainKeeper &#8211; \u521d\u7ea7\u7248\u672c\uff0c\u53ea\u80fd\u81ea\u5b9a\u4e49\u8f93\u5165\uff0c\u66f4\u7075\u6d3b\uff0c\u4f46\u4e0d\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u5c11\u6570\u57df\u540d<\/h1>\n<h2 id=\"%E5%BF%AB%E9%80%9F%E9%83%A8%E7%BD%B2\">\u5feb\u901f\u90e8\u7f72<\/h2>\n<ul>\n<li>\u767b\u5f55\u60a8\u7684Cloudflare\u8d26\u6237<\/li>\n<li>\u521b\u5efa\u65b0\u7684Worker<\/li>\n<li>\u5c06\u00a0<code>index.js<\/code>\u00a0\u7684\u5185\u5bb9\u590d\u5236\u5230Worker\u7f16\u8f91\u5668\uff0c\u7f16\u8f91\u00a0<code>DOMAINS<\/code>\u00a0\u6570\u7ec4\uff0c\u6dfb\u52a0\u60a8\u7684\u57df\u540d\u4fe1\u606f\uff1a<\/li>\n<\/ul>\n<div class=\"code-toolbar\">\n<pre class=\"c_title c_hr c_macdot c_hover_tools c_copy language-none\" tabindex=\"0\"><code class=\"language-none\">const DOMAINS = [\n  { domain: \"example.com\", registrationDate: \"2022-01-01\", expirationDate: \"2027-01-01\", system: \"Cloudflare\" },\n  \/\/ \u6dfb\u52a0\u66f4\u591a\u57df\u540d...\n];<\/code><i class=\"joe-font joe-icon-copy\" title=\"\u590d\u5236\u4ee3\u7801\"><\/i><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<ul>\n<li>\u4fdd\u5b58\u5e76\u90e8\u7f72<\/li>\n<\/ul>\n<h2 id=\"demo\">demo<\/h2>\n<p><a rel=\"nofollow\" href=\"https:\/\/demo.bacon159.me\/\" target=\"\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/demo.bacon159.me\/<\/u><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"domainkeeper---%E9%AB%98%E7%BA%A7%E7%89%88%E6%9C%AC%EF%BC%8C%E9%9B%86%E6%88%90cloudflare%E7%9A%84%E5%9F%9F%E5%90%8D%E4%BF%A1%E6%81%AF%E8%8E%B7%E5%8F%96%E5%92%8Cwhois%E6%9F%A5%E8%AF%A2%E5%8A%9F%E8%83%BD%EF%BC%8C%E5%A4%A7%E5%A4%A7%E6%8F%90%E5%8D%87%E4%BA%86%E5%9F%9F%E5%90%8D%E7%AE%A1%E7%90%86%E7%9A%84%E6%95%88%E7%8E%87%E5%92%8C%E4%BE%BF%E6%8D%B7%E6%80%A7\">DomainKeeper &#8211; \u9ad8\u7ea7\u7248\u672c\uff0c\u96c6\u6210cloudflare\u7684\u57df\u540d\u4fe1\u606f\u83b7\u53d6\u548cwhois\u67e5\u8be2\u529f\u80fd\uff0c\u5927\u5927\u63d0\u5347\u4e86\u57df\u540d\u7ba1\u7406\u7684\u6548\u7387\u548c\u4fbf\u6377\u6027<\/h1>\n<h2 id=\"%E5%BF%AB%E9%80%9F%E9%83%A8%E7%BD%B2-1\">\u5feb\u901f\u90e8\u7f72<\/h2>\n<ol>\n<li>\u767b\u5f55\u60a8\u7684 Cloudflare \u8d26\u6237<\/li>\n<li>\u521b\u5efa\u65b0\u7684 Worker<\/li>\n<li>\u5c06domainkeeper.js\u811a\u672c\u5185\u5bb9\u590d\u5236\u5230 Worker \u7f16\u8f91\u5668<\/li>\n<li>\u5728\u811a\u672c\u9876\u90e8\u914d\u7f6e\u4ee5\u4e0b\u53d8\u91cf\uff1a\n<div class=\"code-toolbar\">\n<pre class=\"c_title c_hr c_macdot c_hover_tools c_copy language-none\" tabindex=\"0\"><code class=\"language-none\">const CF_API_KEY = \"your_cloudflare_api_key\";\nconst WHOIS_PROXY_URL = \"your_whois_proxy_url\";\nconst ACCESS_PASSWORD = \"your_frontend_password\";\nconst ADMIN_PASSWORD = \"your_backend_password\";<\/code><i class=\"joe-font joe-icon-copy\" title=\"\u590d\u5236\u4ee3\u7801\"><\/i><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<p><strong>CF_API_KEY\u7684\u83b7\u53d6\u65b9\u5f0f<\/strong>\uff1a \u767b\u5f55\u81ea\u5df1\u7684cloudflare\u8d26\u53f7\uff0c\u6253\u5f00<a rel=\"nofollow\" href=\"https:\/\/dash.cloudflare.com\/profile\" target=\"\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/dash.cloudflare.com\/profile<\/u><\/a>\u00a0\u70b9\u51fbAPI\u4ee4\u724c\uff0c\u521b\u5efa\u4ee4\u724c\uff0c\u8bfb\u53d6\u6240\u6709\u8d44\u6e90-\u4f7f\u7528\u6a21\u677f\uff0c\u7ee7\u7eed\u4ee5\u663e\u793a\u6458\u8981\uff0c\u521b\u5efa\u4ee4\u724c\uff0c\u590d\u5236\u6b64\u4ee4\u724c\uff0c<strong>\u4fdd\u5b58\u5230\u8bb0\u4e8b\u672c\uff0c\u4e4b\u540e\u4e0d\u4f1a\u518d\u663e\u793a\uff01<\/strong><\/p>\n<p><strong>WHOIS_PROXY_URL\u7684\u83b7\u53d6\u65b9\u5f0f<\/strong>\uff1a\u9700\u8981\u4f60\u81ea\u5efa\uff0c\u8be6\u89c1<a rel=\"nofollow\" href=\"https:\/\/github.com\/ypq123456789\/whois-proxy\" target=\"\" rel=\"noopener noreferrer nofollow\"><u>whois-proxy<\/u><\/a>\u3002<strong>\u6ce8\u610f\uff0cwhois-proxy\u7528\u4e8e\u672c\u811a\u672c\u5fc5\u987b\u7ed1\u5b9a\u57df\u540d\uff0c\u4e0d\u80fd\u7528IP\uff01\u5047\u5982\u4f60\u7684api\u8bf7\u6c42\u5730\u5740\u662fhttp(s):\/\/\u4f60\u7684\u57df\u540d\/whois \u90a3\u4e48WHOIS_PROXY_URL\u4f60\u53ea\u9700\u8981\u586b\u5165http(s):\/\/\u4f60\u7684\u57df\u540d\u3002<\/strong><\/p>\n<p>\u524d\u53f0\u5bc6\u7801\u6309\u9700\u8bbe\u7f6e\uff0c<strong>\u540e\u53f0\u5bc6\u7801\u5fc5\u987b\u8bbe\u7f6e\u3002<\/strong><\/p>\n<ol start=\"5\">\n<li>\u521b\u5efa\u4e00\u4e2a KV \u547d\u540d\u7a7a\u95f4\uff0c\u547d\u540d\u4e3a<code>DOMAIN_INFO<\/code>\uff0c\u5e76\u5c06\u5176\u7ed1\u5b9a\u5230 Worker\uff0c\u7ed1\u5b9a\u540d\u79f0\u4e3a\u00a0<code>DOMAIN_INFO<\/code>\u00a0<u><\/u>\n<p>&nbsp;<\/li>\n<li>\u4fdd\u5b58\u5e76\u90e8\u7f72<\/li>\n<\/ol>\n<h2 id=\"demo-1\">demo<\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a rel=\"nofollow\" href=\"https:\/\/domainkeeper.bacon159.me\/\" target=\"\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/domainkeeper.bacon159.me\/<\/u><\/a><\/p>\n<p>\u524d\u53f0\u5bc6\u7801ypq123456<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u7b80\u4ecb \u8fd9\u662f\u4e00\u4e2a\u7b80\u6d01\u9ad8\u6548\u7684\u57df\u540d\u53ef\u89c6\u5316\u5c55\u793a\u9762\u677f\uff0c\u57fa\u4e8eCloudflare Workers\u6784\u5efa\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u754c\u9762\uff0c\u8ba9\u7528\u6237\u80fd\u591f\u4e00\u76ee\u4e86\u7136\u5730\u67e5\u770b\u4ed6\u4eec\u7684\u57df\u540d\u7ec4\u5408\uff0c\u5305\u62ec\u5404\u4e2a\u57df\u540d\u7684\u72b6\u6001\u3001\u6ce8\u518c\u5546\u3001\u6ce8\u518c\u65e5\u671f\u3001\u8fc7\u671f\u65e5\u671f\u548c\u4f7f\u7528\u8fdb\u5ea6\u3002 \u4e3b\u8981\u7279\u6027 \u521d\u7ea7\u7248\u672c \u6e05&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,131],"tags":[41],"topic":[343],"class_list":["post-16042","post","type-post","status-publish","format-standard","hentry","category-domain-website","category-ganwu","tag-41","topic-domains"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/16042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16042"}],"version-history":[{"count":1,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/16042\/revisions"}],"predecessor-version":[{"id":651076,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/16042\/revisions\/651076"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16042"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16042"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=16042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}