{"id":8163,"date":"2025-04-23T12:42:33","date_gmt":"2025-04-23T04:42:33","guid":{"rendered":"https:\/\/www.cloudbypass.com\/tutorial\/?p=8163"},"modified":"2025-04-23T12:42:33","modified_gmt":"2025-04-23T04:42:33","slug":"%e5%a6%82%e4%bd%95%e9%ab%98%e6%95%88%e8%bf%9b%e8%a1%8c%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e5%ba%94%e7%94%a8%e6%b5%8b%e8%af%95%e8%80%8c%e4%b8%8d%e8%a2%abwaf%e9%98%bb%e6%8c%a1%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.cloudbypass.com\/tutorial\/8163.html","title":{"rendered":"\u5982\u4f55\u9ad8\u6548\u8fdb\u884c\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u6d4b\u8bd5\u800c\u4e0d\u88abWAF\u963b\u6321\uff1f"},"content":{"rendered":"\n<p>\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\uff08DApp\uff09\u662f\u57fa\u4e8e\u533a\u5757\u94fe\u6280\u672f\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5177\u6709\u53bb\u4e2d\u5fc3\u5316\u3001\u900f\u660e\u548c\u5f00\u653e\u7684\u7279\u6027\u3002\u4e0e\u4f20\u7edf\u5e94\u7528\u4e0d\u540c\uff0cDApp\u7684\u6d4b\u8bd5\u9700\u8981\u8003\u8651\u5176\u72ec\u7279\u7684\u67b6\u6784\u548c\u5b89\u5168\u9700\u6c42\u3002\u7136\u800c\uff0c\u5728\u8fdb\u884cDApp\u6d4b\u8bd5\u65f6\uff0c\u5f00\u53d1\u8005\u548c\u6d4b\u8bd5\u4eba\u5458\u5e38\u5e38\u4f1a\u9047\u5230Web\u5e94\u7528\u9632\u706b\u5899\uff08WAF\uff09\u7684\u963b\u6321\uff0c\u8fd9\u4f7f\u5f97\u6d4b\u8bd5\u8fc7\u7a0b\u53d8\u5f97\u590d\u6742\u548c\u4f4e\u6548\u3002\u672c\u6587\u5c06\u63a2\u8ba8\u5982\u4f55\u9ad8\u6548\u8fdb\u884c\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u6d4b\u8bd5\uff0c\u540c\u65f6\u7ed5\u8fc7Cloudflare\u7b49WAF\u7684\u9650\u5236\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7406\u89e3\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7684\u7279\u6027<\/h2>\n\n\n\n<p>\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\uff08DApp\uff09\u901a\u5e38\u5177\u6709\u4ee5\u4e0b\u7279\u6027\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u53bb\u4e2d\u5fc3\u5316<\/strong>\uff1aDApp\u8fd0\u884c\u5728\u533a\u5757\u94fe\u7f51\u7edc\u4e0a\uff0c\u6ca1\u6709\u4e2d\u592e\u670d\u52a1\u5668\uff0c\u6570\u636e\u548c\u903b\u8f91\u5206\u5e03\u5728\u7f51\u7edc\u7684\u6bcf\u4e2a\u8282\u70b9\u4e0a\u3002<\/li>\n\n\n\n<li><strong>\u900f\u660e\u6027<\/strong>\uff1a\u6240\u6709\u7684\u4ea4\u6613\u548c\u64cd\u4f5c\u90fd\u662f\u516c\u5f00\u7684\uff0c\u53ef\u4ee5\u88ab\u4efb\u4f55\u4eba\u67e5\u770b\u548c\u9a8c\u8bc1\u3002<\/li>\n\n\n\n<li><strong>\u5f00\u653e\u6027<\/strong>\uff1aDApp\u7684\u4ee3\u7801\u901a\u5e38\u662f\u5f00\u6e90\u7684\uff0c\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u5ba1\u67e5\u548c\u8d21\u732e\u4ee3\u7801\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f97DApp\u5728\u6570\u636e\u5b89\u5168\u548c\u900f\u660e\u5ea6\u65b9\u9762\u5177\u6709\u4f18\u52bf\uff0c\u4f46\u4e5f\u5e26\u6765\u4e86\u6d4b\u8bd5\u4e0a\u7684\u6311\u6218\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u6d4b\u8bd5\u7684\u6311\u6218<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.&nbsp;<strong>\u7f51\u7edc\u5ef6\u8fdf\u548c\u6027\u80fd\u95ee\u9898<\/strong><\/h3>\n\n\n\n<p>\u7531\u4e8eDApp\u4f9d\u8d56\u4e8e\u533a\u5757\u94fe\u7f51\u7edc\uff0c\u7f51\u7edc\u5ef6\u8fdf\u548c\u6027\u80fd\u95ee\u9898\u53ef\u80fd\u4f1a\u5f71\u54cd\u6d4b\u8bd5\u7ed3\u679c\u3002\u6d4b\u8bd5\u4eba\u5458\u9700\u8981\u6a21\u62df\u4e0d\u540c\u7684\u7f51\u7edc\u73af\u5883\uff0c\u4ee5\u786e\u4fddDApp\u5728\u5404\u79cd\u7f51\u7edc\u6761\u4ef6\u4e0b\u90fd\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.&nbsp;<strong>\u5b89\u5168\u6027\u6d4b\u8bd5<\/strong><\/h3>\n\n\n\n<p>DApp\u7684\u5b89\u5168\u6027\u6d4b\u8bd5\u4e0d\u4ec5\u5305\u62ec\u4f20\u7edf\u7684\u6f0f\u6d1e\u626b\u63cf\uff0c\u8fd8\u9700\u8981\u8003\u8651\u667a\u80fd\u5408\u7ea6\u7684\u5b89\u5168\u6027\u3002\u667a\u80fd\u5408\u7ea6\u4e00\u65e6\u90e8\u7f72\uff0c\u5c31\u65e0\u6cd5\u4fee\u6539\uff0c\u56e0\u6b64\u4efb\u4f55\u6f0f\u6d1e\u90fd\u53ef\u80fd\u88ab\u653b\u51fb\u8005\u5229\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.&nbsp;<strong>WAF\u7684\u963b\u6321<\/strong><\/h3>\n\n\n\n<p>\u8bb8\u591aDApp\u4f7f\u7528Cloudflare\u7b49WAF\u670d\u52a1\u6765\u4fdd\u62a4\u5176\u7f51\u7ad9\u548cAPI\u3002\u8fd9\u4e9bWAF\u4f1a\u963b\u6321\u81ea\u52a8\u5316\u6d4b\u8bd5\u5de5\u5177\u548c\u722c\u866b\uff0c\u4f7f\u5f97\u6d4b\u8bd5\u8fc7\u7a0b\u53d8\u5f97\u590d\u6742\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ed5\u8fc7Cloudflare\u8fdb\u884c\u9ad8\u6548\u6d4b\u8bd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.&nbsp;<strong>\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668<\/strong><\/h3>\n\n\n\n<p>\u901a\u8fc7\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u9690\u85cf\u6d4b\u8bd5\u8bf7\u6c42\u7684\u771f\u5b9eIP\u5730\u5740\uff0c\u4f7fCloudflare\u96be\u4ee5\u8bc6\u522b\u8bf7\u6c42\u662f\u6765\u81ea\u673a\u5668\u4eba\u8fd8\u662f\u771f\u5b9e\u7528\u6237\u3002\u9009\u62e9\u53ef\u9760\u7684\u4ee3\u7406\u670d\u52a1\u5546\uff0c\u786e\u4fdd\u7a33\u5b9a\u548c\u5b89\u5168\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.&nbsp;<strong>\u4fee\u6539\u8bf7\u6c42\u5934\u4fe1\u606f<\/strong><\/h3>\n\n\n\n<p>Cloudflare\u4f1a\u68c0\u67e5\u8bf7\u6c42\u7684\u5934\u4fe1\u606f\u6765\u5224\u65ad\u662f\u5426\u662f\u673a\u5668\u4eba\u3002\u901a\u8fc7\u4fee\u6539\u8bf7\u6c42\u5934\u4e2d\u7684\u53c2\u6570\uff0c\u6bd4\u5982User-Agent\u3001Referer\u7b49\uff0c\u4f7f\u5176\u770b\u8d77\u6765\u66f4\u50cf\u662f\u771f\u5b9e\u7528\u6237\u7684\u8bf7\u6c42\u3002\u53ef\u4ee5\u968f\u673a\u751f\u6210\u8fd9\u4e9b\u53c2\u6570\uff0c\u4ee5\u589e\u52a0\u5176\u771f\u5b9e\u6027\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.&nbsp;<strong>\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a<\/strong><\/h3>\n\n\n\n<p>\u4f7f\u7528\u65e0\u5934\u6d4f\u89c8\u5668\uff08\u5982Puppeteer\u6216Selenium\uff09\u6a21\u62df\u771f\u5b9e\u7528\u6237\u7684\u884c\u4e3a\uff0c\u52a0\u8f7d\u548c\u6267\u884c\u7f51\u9875\u4e0a\u7684JavaScript\u4ee3\u7801\uff0c\u83b7\u53d6\u52a8\u6001\u751f\u6210\u7684\u5185\u5bb9\u3002\u8fd9\u6837\u53ef\u4ee5\u66f4\u597d\u5730\u6a21\u62df\u771f\u5b9e\u7528\u6237\u7684\u8bbf\u95ee\u884c\u4e3a\uff0c\u7ed5\u8fc7Cloudflare\u7684\u68c0\u6d4b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.&nbsp;<strong>\u5904\u7406\u9a8c\u8bc1\u7801<\/strong><\/h3>\n\n\n\n<p>Cloudflare\u53ef\u80fd\u4f1a\u4f7f\u7528\u9a8c\u8bc1\u7801\u6765\u963b\u6321\u81ea\u52a8\u5316\u8bf7\u6c42\u3002\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u9a8c\u8bc1\u7801\u8bc6\u522b\u670d\u52a1\u6765\u81ea\u52a8\u5904\u7406\u9a8c\u8bc1\u7801\uff0c\u6216\u8005\u624b\u52a8\u5904\u7406\u5173\u952e\u8bf7\u6c42\u7684\u9a8c\u8bc1\u7801\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5.&nbsp;<strong>\u4f7f\u7528\u7a7f\u4e91API<\/strong><\/h3>\n\n\n\n<p>\u7a7f\u4e91API\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u7a81\u7834Cloudflare\u53cd\u722c\u866b\u7b56\u7565\u7684\u5de5\u5177\u3002\u5b83\u901a\u8fc7\u6a21\u62df\u6b63\u5e38\u7528\u6237\u7684\u8bbf\u95ee\u884c\u4e3a\uff0c<a href=\"https:\/\/www.cloudbypass.com\/\" data-type=\"link\" data-id=\"https:\/\/www.cloudbypass.com\/\">\u7ed5\u8fc7Cloudflare<\/a>\u7684\u68c0\u6d4b\u673a\u5236\uff0c\u4f7f\u722c\u866b\u7a0b\u5e8f\u80fd\u591f\u987a\u5229\u8bbf\u95ee\u76ee\u6807\u7f51\u7ad9\u5e76\u83b7\u53d6\u6570\u636e\u3002\u7a7f\u4e91API\u63d0\u4f9b\u4e86HTTP API\u6a21\u5f0f\u548cProxy\u6a21\u5f0f\u7684\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u62ec\u63a5\u53e3\u5730\u5740\u3001\u8bf7\u6c42\u53c2\u6570\u548c\u8fd4\u56de\u5904\u7406\u7b49\uff0c\u652f\u6301\u8bbe\u7f6eReferer\u3001\u6d4f\u89c8\u5668UA\u4ee5\u53caheadless\u72b6\u6001\u7b49\u5404\u6d4f\u89c8\u5668\u6307\u7eb9\u8bbe\u5907\u7279\u5f81\uff0c\u4e3a\u60a8\u63d0\u4f9b\u66f4\u591a\u7075\u6d3b\u6027\u548c\u63a7\u5236\u6743\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u9645\u64cd\u4f5c\u6b65\u9aa4<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.&nbsp;<strong>\u6ce8\u518c\u7a7f\u4e91API\u8d26\u53f7<\/strong><\/h3>\n\n\n\n<p>\u5728\u7a7f\u4e91API\u5b98\u7f51\u6ce8\u518c\u8d26\u53f7\uff0c\u83b7\u53d6API\u5bc6\u94a5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.&nbsp;<strong>\u96c6\u6210\u7a7f\u4e91API<\/strong><\/h3>\n\n\n\n<p>\u5c06\u7a7f\u4e91API\u4ee3\u7801\u96c6\u6210\u5230\u60a8\u7684\u6d4b\u8bd5\u811a\u672c\u4e2d\uff0c\u4f7f\u7528API\u63d0\u4f9b\u7684\u63a5\u53e3\u8fdb\u884c\u8bf7\u6c42\u53d1\u9001\u548c\u6570\u636e\u83b7\u53d6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.&nbsp;<strong>\u914d\u7f6e\u4ee3\u7406\u548c\u8bf7\u6c42\u5934<\/strong><\/h3>\n\n\n\n<p>\u5728\u6d4b\u8bd5\u811a\u672c\u4e2d\u914d\u7f6e\u4ee3\u7406\u670d\u52a1\u5668\u548c\u8bf7\u6c42\u5934\u4fe1\u606f\uff0c\u786e\u4fdd\u6bcf\u6b21\u8bf7\u6c42\u90fd\u80fd\u7ed5\u8fc7Cloudflare\u7684\u68c0\u6d4b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.&nbsp;<strong>\u5904\u7406\u9a8c\u8bc1\u7801<\/strong><\/h3>\n\n\n\n<p>\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u9a8c\u8bc1\u7801\u7684\u8bf7\u6c42\uff0c\u4f7f\u7528\u7a7f\u4e91API\u63d0\u4f9b\u7684\u9a8c\u8bc1\u7801\u8bc6\u522b\u529f\u80fd\uff0c\u6216\u8005\u624b\u52a8\u5904\u7406\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5.&nbsp;<strong>\u76d1\u63a7\u548c\u4f18\u5316<\/strong><\/h3>\n\n\n\n<p>\u76d1\u63a7\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u7684\u8bf7\u6c42\u6210\u529f\u7387\u548c\u54cd\u5e94\u65f6\u95f4\uff0c\u4f18\u5316\u6d4b\u8bd5\u811a\u672c\u548c\u914d\u7f6e\uff0c\u786e\u4fdd\u6d4b\u8bd5\u8fc7\u7a0b\u9ad8\u6548\u7a33\u5b9a\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u7406\u89e3\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7684\u7279\u6027\u548c\u6d4b\u8bd5\u6311\u6218\uff0c\u7ed3\u5408\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u3001\u4fee\u6539\u8bf7\u6c42\u5934\u3001\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a\u548c\u5904\u7406\u9a8c\u8bc1\u7801\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u8fdb\u884c\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u6d4b\u8bd5\uff0c\u540c\u65f6\u7ed5\u8fc7Cloudflare\u7b49WAF\u7684\u9650\u5236\u3002\u7a7f\u4e91API\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u80fd\u591f\u5e2e\u52a9\u6d4b\u8bd5\u4eba\u5458\u8f7b\u677e\u7a81\u7834Cloudflare\u53cd\u722c\u866b\u7b56\u7565\uff0c\u5b9e\u73b0\u65e0\u9650\u5236\u7684\u6570\u636e\u91c7\u96c6\u548c\u9ad8\u6548\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\uff08DApp\uff09\u662f\u57fa\u4e8e\u533a\u5757\u94fe\u6280\u672f\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5177\u6709\u53bb\u4e2d\u5fc3\u5316\u3001\u900f\u660e\u548c\u5f00\u653e\u7684\u7279\u6027\u3002\u4e0e\u4f20\u7edf\u5e94\u7528\u4e0d\u540c\uff0cDAp&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.cloudbypass.com\/tutorial\/8163.html\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;\u5982\u4f55\u9ad8\u6548\u8fdb\u884c\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u6d4b\u8bd5\u800c\u4e0d\u88abWAF\u963b\u6321\uff1f&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3620,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-8163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloudflare-real-person-verification"],"_links":{"self":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/8163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/comments?post=8163"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/8163\/revisions"}],"predecessor-version":[{"id":8164,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/8163\/revisions\/8164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/media\/3620"}],"wp:attachment":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/media?parent=8163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/categories?post=8163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/tags?post=8163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}