{"id":2630,"date":"2023-08-16T15:08:53","date_gmt":"2023-08-16T07:08:53","guid":{"rendered":"https:\/\/www.cloudbypass.com\/tutorial\/?p=2630"},"modified":"2024-04-30T20:03:55","modified_gmt":"2024-04-30T12:03:55","slug":"%e7%a9%bf%e4%ba%91api%e5%8a%a9%e5%8a%9b%e5%85%ab%e7%88%aa%e9%b1%bc%e9%87%87%e9%9b%86%e5%99%a8%e6%94%bb%e5%85%8bcaptcha%e9%aa%8c%e8%af%81%e9%9a%be%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.cloudbypass.com\/tutorial\/2630.html","title":{"rendered":"\u7a7f\u4e91API\u52a9\u529b\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u653b\u514bCAPTCHA\u9a8c\u8bc1\u96be\u9898"},"content":{"rendered":"\n<p>\u3000\u3000\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u6570\u636e\u5df2\u7ecf\u6210\u4e3a\u73b0\u4ee3\u793e\u4f1a\u4e2d\u7684\u5b9d\u8d35\u8d44\u6e90\u3002\u7136\u800c\uff0c\u4e3a\u4e86\u4fdd\u62a4\u6570\u636e\u514d\u53d7\u6076\u610f\u7f51\u7edc\u6293\u53d6\u548c\u673a\u5668\u4eba\u653b\u51fb\uff0c\u8bb8\u591a\u7f51\u7ad9\u91c7\u7528\u4e86\u5404\u79cd\u9632\u62a4\u673a\u5236\uff0c\u5982Cloudflare\u53cd\u722c\u866b403\u3001CAPTCHA\u9a8c\u8bc1\u548cCloudflare5\u79d2\u76feWAF\u7b49\uff0c\u9650\u5236\u4e86\u6570\u636e\u7684\u6b63\u5e38\u83b7\u53d6\u3002\u5728\u8fd9\u4e2a\u80cc\u666f\u4e0b\uff0c\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u4f5c\u4e3a\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u722c\u866b\u5de5\u5177\u5e94\u8fd0\u800c\u751f\u3002\u901a\u8fc7\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\uff0c\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u53ef\u4ee5\u8f7b\u677e\u7ed5\u8fc7\u8fd9\u4e9b\u673a\u5236\uff0c\u7279\u522b\u662f\u90a3\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684CAPTCHA\u9a8c\u8bc1\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u5bf9\u6570\u636e\u7684\u9ad8\u6548\u6293\u53d6\u3002\u672c\u6587\u5c06\u63a2\u8ba8\u7a7f\u4e91API\u5982\u4f55\u52a9\u529b\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u653b\u514bCAPTCHA\u9a8c\u8bc1\u96be\u9898\uff0c\u4e3a\u6570\u636e\u91c7\u96c6\u63d0\u4f9b\u66f4\u4fbf\u6377\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<p>\u3000<strong>\u30001.\u516b\u722a\u9c7c\u91c7\u96c6\u5668\uff1a\u89e3\u9501\u6570\u636e\u7684\u5b9d\u5e93<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u6570\u636e\u5bf9\u4e8e\u4f01\u4e1a\u51b3\u7b56\u3001\u5e02\u573a\u5206\u6790\u3001\u79d1\u5b66\u7814\u7a76\u7b49\u9886\u57df\u5177\u6709\u91cd\u8981\u4ef7\u503c\uff0c\u56e0\u6b64\u6570\u636e\u91c7\u96c6\u53d8\u5f97\u6108\u53d1\u91cd\u8981\u3002\u7136\u800c\uff0c\u7f51\u7ad9\u4e3a\u4e86\u4fdd\u62a4\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u5e38\u5e38\u91c7\u7528CAPTCHA\u9a8c\u8bc1\u7b49\u673a\u5236\uff0c\u9650\u5236\u4e86\u6570\u636e\u7684\u83b7\u53d6\u3002\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u4f5c\u4e3a\u5168\u7f51\u901a\u7528\u7684\u4e92\u8054\u7f51\u6570\u636e\u91c7\u96c6\u5668\uff0c\u901a\u8fc7\u6a21\u62df\u4eba\u7c7b\u6d4f\u89c8\u7f51\u9875\u7684\u884c\u4e3a\uff0c\u751f\u6210\u81ea\u52a8\u5316\u7684\u91c7\u96c6\u6d41\u7a0b\uff0c\u5c06\u7f51\u9875\u6570\u636e\u8f6c\u5316\u4e3a\u7ed3\u6784\u5316\u6570\u636e\uff0c\u4ee5\u591a\u79cd\u5f62\u5f0f\u5b58\u50a8\u3002\u8fd9\u4e3a\u6570\u636e\u7684\u5feb\u901f\u3001\u51c6\u786e\u91c7\u96c6\u63d0\u4f9b\u4e86\u4fbf\u6377\u9014\u5f84\u3002<\/p>\n\n\n\n<p>\u3000<strong>\u30002.CAPTCHA\u9a8c\u8bc1\uff1a\u6570\u636e\u91c7\u96c6\u7684\u96be\u9898<\/strong><\/p>\n\n\n\n<p>\u3000\u3000CAPTCHA\u9a8c\u8bc1\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u53cd\u722c\u866b\u624b\u6bb5\uff0c\u8981\u6c42\u7528\u6237\u5b8c\u6210\u7279\u5b9a\u7684\u4efb\u52a1\uff0c\u4ee5\u8bc1\u660e\u5176\u4e3a\u771f\u5b9e\u7528\u6237\u3002\u8fd9\u79cd\u9a8c\u8bc1\u65b9\u5f0f\u5bf9\u4e8e\u6b63\u5e38\u7528\u6237\u6765\u8bf4\u53ef\u80fd\u662f\u4e00\u79cd\u5c0f\u5c0f\u7684\u9ebb\u70e6\uff0c\u4f46\u5bf9\u4e8e\u722c\u866b\u5de5\u5177\u6765\u8bf4\uff0c\u5374\u662f\u4e00\u4e2a\u5de8\u5927\u7684\u96be\u9898\u3002\u4f20\u7edf\u7684CAPTCHA\u9a8c\u8bc1\u5bf9\u4e8e\u722c\u866b\u5de5\u5177\u800c\u8a00\u51e0\u4e4e\u662f\u4e0d\u53ef\u903e\u8d8a\u7684\u963b\u788d\uff0c\u56e0\u4e3a\u5b83\u4eec\u65e0\u6cd5\u50cf\u4eba\u7c7b\u7528\u6237\u90a3\u6837\u89e3\u51b3\u8fd9\u4e9b\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<p><strong>\u3000\u30003.\u7a7f\u4e91API\u53cdAnti-bot\u5de5\u5177\uff1a\u653b\u514bCAPTCHA\u7684\u5229\u5668<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\u4e3a\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u653b\u514bCAPTCHA\u9a8c\u8bc1\u96be\u9898\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6b66\u5668\u3002\u8fd9\u4e00\u5de5\u5177\u901a\u8fc7\u667a\u80fd\u7b97\u6cd5\u548c\u9ad8\u6548\u7684\u8ba1\u7b97\u80fd\u529b\uff0c\u80fd\u591f\u6a21\u62df\u4eba\u7c7b\u7528\u6237\u7684\u64cd\u4f5c\uff0c\u8f7b\u677e\u7ed5\u8fc7CAPTCHA\u9a8c\u8bc1\u3002\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\u4e0d\u4ec5\u53ef\u4ee5\u6210\u529f\u8bc6\u522b\u548c\u5e94\u5bf9\u5404\u79cdCAPTCHA\u9a8c\u8bc1\uff0c\u8fd8\u80fd\u591f\u6709\u6548\u5730\u7ed5\u8fc7\u5176\u4ed6\u53cd\u722c\u866b\u673a\u5236\uff0c\u5982Cloudflare\u53cd\u722c\u866b403\u548cCloudflare5\u79d2\u76feWAF\u7b49\uff0c\u4e3a\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u63d0\u4f9b\u4e86\u5168\u65b9\u4f4d\u7684\u9632\u62a4\u548c\u652f\u6301\u3002<\/p>\n\n\n\n<p>\u3000<strong>\u30004.\u63d0\u5347\u6570\u636e\u91c7\u96c6\u6548\u7387\u4e0e\u51c6\u786e\u6027<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\u4e0d\u4ec5\u89e3\u51b3\u4e86CAPTCHA\u9a8c\u8bc1\u7684\u95ee\u9898\uff0c\u8fd8\u5927\u5927\u63d0\u5347\u4e86\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7684\u6570\u636e\u91c7\u96c6\u6548\u7387\u548c\u51c6\u786e\u6027\u3002\u901a\u8fc7\u7a7f\u4e91API\u7684\u652f\u6301\uff0c\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u80fd\u591f\u5728\u7ed5\u8fc7\u9632\u62a4\u673a\u5236\u7684\u540c\u65f6\uff0c\u5c06\u6570\u636e\u4ee5\u7ed3\u6784\u5316\u7684\u5f62\u5f0f\u8fdb\u884c\u91c7\u96c6\u548c\u5b58\u50a8\uff0c\u4f7f\u5f97\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u66f4\u52a0\u65b9\u4fbf\u5feb\u6377\u3002<\/p>\n\n\n\n<p><strong>\u3000\u30005.\u521b\u65b0\u4e0e\u5408\u89c4\u5e76\u91cd<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u7136\u800c\uff0c\u4f7f\u7528\u7a7f\u4e91API\u53cdAnti-bot\u5de5\u5177\u65f6\uff0c\u7528\u6237\u9700\u8981\u4fdd\u6301\u521b\u65b0\u548c\u5408\u89c4\u7684\u5e73\u8861\u3002\u6570\u636e\u91c7\u96c6\u7684\u76ee\u7684\u548c\u8303\u56f4\u9700\u8981\u7b26\u5408\u6cd5\u89c4\u548c\u9053\u5fb7\uff0c\u907f\u514d\u975e\u6cd5\u6293\u53d6\u548c\u6ee5\u7528\u4ed6\u4eba\u6570\u636e\u3002\u5728\u4f7f\u7528\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u548c\u7a7f\u4e91API\u65f6\uff0c\u7528\u6237\u5e94\u5f53\u9075\u5faa\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u5c0a\u91cd\u7f51\u7ad9\u7684\u4f7f\u7528\u89c4\u5219\uff0c\u5e76\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u5408\u6cd5\u6027\u548c\u5408\u89c4\u6027\u3002<\/p>\n\n\n\n<p><strong>\u3000\u30006.\u7ed3\u5408\u7a7f\u4e91API\u7684\u4f18\u52bf<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\u4e3a\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7684\u5e94\u7528\u5e26\u6765\u4e86\u8bb8\u591a\u4f18\u52bf\u3002\u9996\u5148\uff0c\u5b83\u89e3\u51b3\u4e86CAPTCHA\u9a8c\u8bc1\u7684\u96be\u9898\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u6570\u636e\u6293\u53d6\u65b9\u5f0f\u3002\u5176\u6b21\uff0c\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\u8fd8\u5177\u5907\u653b\u7834\u673a\u5668\u4eba\u7f51\u7ad9\u548c\u7ed5\u8fc7\u5176\u4ed6\u53cd\u722c\u866b\u673a\u5236\u7684\u80fd\u529b\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u9632\u62a4\u652f\u6301\u3002\u6b64\u5916\uff0c\u7a7f\u4e91API\u63d0\u4f9b\u7684HTTPAPI\u3001\u7f6eReferer\u3001\u6d4f\u89c8\u5668UA\u548cheadless\u72b6\u6001\u7b49\u529f\u80fd\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u4e86\u6570\u636e\u91c7\u96c6\u7684\u7075\u6d3b\u6027\u548c\u81ea\u5b9a\u4e49\u6027\uff0c\u6ee1\u8db3\u4e86\u4e0d\u540c\u7528\u6237\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n<p><strong>\u3000\u30007.\u6570\u636e\u6536\u96c6\u7684\u672a\u6765\u5c55\u671b<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u968f\u7740\u4e92\u8054\u7f51\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u6570\u636e\u7684\u91cd\u8981\u6027\u5c06\u6108\u53d1\u51f8\u663e\u3002\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7ed3\u5408\u7a7f\u4e91API\u7684\u5e94\u7528\uff0c\u4e3a\u6570\u636e\u6536\u96c6\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5de5\u5177\u548c\u89e3\u51b3\u65b9\u6848\u3002\u672a\u6765\uff0c\u968f\u7740\u53cd\u722c\u866b\u6280\u672f\u7684\u4e0d\u65ad\u5347\u7ea7\u548c\u6539\u8fdb\uff0c\u6570\u636e\u91c7\u96c6\u53ef\u80fd\u4f1a\u9762\u4e34\u66f4\u591a\u7684\u6311\u6218\u3002\u7136\u800c\uff0c\u7a7f\u4e91API\u4f5c\u4e3a\u4e00\u9879\u524d\u6cbf\u6280\u672f\uff0c\u5c06\u6301\u7eed\u52a9\u529b\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u653b\u514b\u5404\u79cd\u96be\u9898\uff0c\u4e3a\u6570\u636e\u6536\u96c6\u63d0\u4f9b\u66f4\u52a0\u7a33\u5b9a\u3001\u9ad8\u6548\u3001\u4fbf\u6377\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7ed3\u5408\u7a7f\u4e91API\u7684\u53cdAnti-bot\u5de5\u5177\uff0c\u4e3a\u7528\u6237\u5728\u6570\u636e\u91c7\u96c6\u8fc7\u7a0b\u4e2d\u63d0\u4f9b\u4e86\u6709\u529b\u7684\u652f\u6301\u3002\u901a\u8fc7\u653b\u514bCAPTCHA\u9a8c\u8bc1\u96be\u9898\uff0c\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u80fd\u591f\u7ed5\u8fc7\u5404\u79cd\u9632\u62a4\u673a\u5236\uff0c\u5b9e\u73b0\u9ad8\u6548\u3001\u51c6\u786e\u7684\u6570\u636e\u6293\u53d6\u3002\u7136\u800c\uff0c\u5728\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u65f6\uff0c\u7528\u6237\u9700\u8981\u9075\u5faa\u6cd5\u89c4\u548c\u9053\u5fb7\uff0c\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u5408\u6cd5\u6027\u548c\u5408\u89c4\u6027\u3002\u7a7f\u4e91API\u7684\u529f\u80fd\u548c\u4f18\u52bf\u4e3a\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7684\u5e94\u7528\u589e\u6dfb\u4e86\u65b0\u7684\u7ef4\u5ea6\uff0c\u5c06\u6570\u636e\u6536\u96c6\u63a8\u5411\u4e86\u4e00\u4e2a\u66f4\u52a0\u9ad8\u6548\u3001\u667a\u80fd\u7684\u672a\u6765\u3002\u968f\u7740\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u7ed3\u5408\u7a7f\u4e91API\u5c06\u7ee7\u7eed\u5728\u6570\u636e\u6536\u96c6\u9886\u57df\u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\uff0c\u52a9\u529b\u7528\u6237\u653b\u514b\u5404\u79cd\u6570\u636e\u91c7\u96c6\u96be\u9898\uff0c\u5f00\u542f\u6570\u636e\u6316\u6398\u7684\u65b0\u7bc7\u7ae0\u3002<\/p>\n\n\n\n<p>\u3000\u3000<strong>\u4f7f\u7528\u7a7f\u4e91API\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u7ed5\u8fc7Cloudflare\u53cd\u722c\u866b\u7684\u673a\u5668\u4eba\u9a8c\u8bc1\uff0c\u5373\u4f7f\u60a8\u9700\u8981\u53d1\u900110\u4e07\u4e2a\u8bf7\u6c42\uff0c\u4e5f\u4e0d\u5fc5\u62c5\u5fc3\u88ab\u8bc6\u522b\u4e3a\u6293\u53d6\u8005\u3002<\/strong><\/p>\n\n\n\n<p>\u3000<strong>\u3000\u4e00\u4e2a\u7a7f\u4e91API\u5373\u53ef\u7a81\u7834\u6240\u6709\u53cdAnti-bot\u673a\u5668\u4eba\u68c0\u67e5\uff0c\u8f7b\u677e<a href=\"https:\/\/www.cloudbypass.com\/\" data-type=\"link\" data-id=\"https:\/\/www.cloudbypass.com\/\">\u7ed5\u8fc7Cloudflare\u9a8c\u8bc1<\/a>\u3001CAPTCHA\u9a8c\u8bc1\uff0cWAF\uff0cCC\u9632\u62a4\uff0c\u5e76\u63d0\u4f9b\u4e86HTTPAPI\u548cProxy\uff0c\u5305\u62ec\u63a5\u53e3\u5730\u5740\u3001\u8bf7\u6c42\u53c2\u6570\u3001\u8fd4\u56de\u5904\u7406\uff1b\u4ee5\u53ca\u8bbe\u7f6eReferer\uff0c\u6d4f\u89c8\u5668UA\u548cheadless\u72b6\u6001\u7b49\u5404\u6d4f\u89c8\u5668\u6307\u7eb9\u8bbe\u5907\u7279\u5f81\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u6570\u636e\u5df2\u7ecf\u6210\u4e3a\u73b0\u4ee3\u793e\u4f1a\u4e2d\u7684\u5b9d\u8d35\u8d44\u6e90\u3002\u7136\u800c\uff0c\u4e3a\u4e86\u4fdd\u62a4\u6570\u636e\u514d\u53d7\u6076\u610f\u7f51\u7edc\u6293\u53d6\u548c\u673a\u5668\u4eba\u653b\u51fb\uff0c\u8bb8&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.cloudbypass.com\/tutorial\/2630.html\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;\u7a7f\u4e91API\u52a9\u529b\u516b\u722a\u9c7c\u91c7\u96c6\u5668\u653b\u514bCAPTCHA\u9a8c\u8bc1\u96be\u9898&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":986,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,27,33],"tags":[],"class_list":["post-2630","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloudflare-always-verifies","category-cloudflare-human-verification","category-cloudflare-unlimited-verification"],"_links":{"self":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/2630","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=2630"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/2630\/revisions"}],"predecessor-version":[{"id":2631,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/posts\/2630\/revisions\/2631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/media\/986"}],"wp:attachment":[{"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/media?parent=2630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/categories?post=2630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudbypass.com\/tutorial\/wp-json\/wp\/v2\/tags?post=2630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}