{"id":805,"date":"2019-02-25T23:00:56","date_gmt":"2019-02-25T14:00:56","guid":{"rendered":"http:\/\/idealive.jp\/blog\/?p=805"},"modified":"2019-02-25T21:50:46","modified_gmt":"2019-02-25T12:50:46","slug":"recaptcha-v3%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/idealive.jp\/blog\/2019\/02\/25\/recaptcha-v3%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"reCAPTCHA v3\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u4ed5\u4e8b\u3067\u300creCAPTCHA v3\u300d\u5c0e\u5165\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001<br \/>\n\u6700\u65b0\u6d41\u884c\u3063\u3066\u3044\u308b\uff1freCAPTCHA\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u300creCAPTCHA\u300d\u3068\u306f\uff1f<br \/>\n\u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u3092\u8a66\u307f\u308b\u30dc\u30c3\u30c8\u304b\u3089\u30b5\u30a4\u30c8\u3092\u9632\u5fa1\u3059\u308b\u305f\u3081\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u306d\u3002<br \/>\n\u3088\u304f\u691c\u7d22\u306a\u3069\u884c\u3063\u3066\u3044\u305f\u3089<br \/>\n\u30fb\u25cb\u25cb\u306e\u5199\u771f\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044<br \/>\n\u30fb\u6587\u5b57\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\n\u306a\u3069\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u307e\u3055\u306b\u305d\u308c\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300cv3\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u8a2d\u5b9a\u3092\u884c\u3046\u3068\u81ea\u52d5\u3067\u5224\u5b9a\u3057\u3066\u304f\u308cbot\u306e\u53ef\u80fd\u6027\u3092\u6570\u5024\u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u8a2d\u5b9a\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\uff08\u203b\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3042\u308b\u524d\u63d0\u3067\u3059\uff09<\/p>\n<p>[\u8a2d\u5b9a\u5074]<br \/>\n\uff27\uff4f\uff4f\uff47\uff4c\uff45\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002<br \/>\n\uff08\u30ed\u30b0\u30a4\u30f3\u65b9\u6cd5\u306f\u3044\u308d\u3044\u308d\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u5c0e\u5165\u3057\u305f\u969b\u306f\u300chttps:\/\/www.google.com\/recaptcha\/\u300d\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3044<br \/>\n\u53f3\u4e0a\u306e\u300cAdmin console\u300d\u30dc\u30bf\u30f3\u3088\u308a\u30ed\u30b0\u30a4\u30f3\u304c\u53ef\u80fd\u306a\u306e\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001reCAPTCHA\u306b\u5fc5\u8981\u306a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u3092\u884c\u3046\u3068[\u30b5\u30a4\u30c8\u30ad\u30fc]\u3068[\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc]\u304c\u767a\u884c\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u7d44\u307f\u8fbc\u307f\u6642\u306b\u5fc5\u8981\u306a\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\uff27\uff4f\uff4f\uff47\uff4c\uff45\u5074\u306e\u8a2d\u5b9a\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<p>[\u30d7\u30ed\u30b0\u30e9\u30e0\u5074]<br \/>\n\u5bfe\u8c61\u753b\u9762\u306eHTML\u306b\u4e0b\u8a18\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<p>\u25c6\u4e0b\u8a18\u3092\u8aad\u307f\u8fbc\u3080<br \/>\nhttps:\/\/www.google.com\/recaptcha\/api.js?render=[\u30b5\u30a4\u30c8\u30ad\u30fc]<\/p>\n<p>\u25c6\u5b9f\u884c\u51e6\u7406\u306b\u4e0b\u8a18\u3092\u57cb\u3081\u8fbc\u3080<br \/>\ngrecaptcha.ready(function() {<br \/>\n        grecaptcha.execute([\u30b5\u30a4\u30c8\u30ad\u30fc], { action: &#8216;homepage&#8217; }).then(function (token) {<br \/>\n                \u2026\uff08\u51e6\u7406\u5185\u5bb9\uff09<br \/>\n        });<br \/>\n});<\/p>\n<p>[\u2026]\u306e\u90e8\u5206\u306btoken\u3092POST\u3067\u304d\u308b\u3088\u3046\u306bform\u306b\u30bb\u30c3\u30c8\u3059\u308b\u51e6\u7406\u3068submit\u51e6\u7406\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<p>\u4e0b\u8a18\u4e00\u4f8b<br \/>\n$(&#8216;#TokenKey&#8217;).val(token);<br \/>\n$(&#8216;#BtnSubmit&#8217;).click();<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\naction\u306f\u4e0b\u8a18\u306e\u7a2e\u985e\u304c\u3042\u308a\u3001\u30d9\u30fc\u30b9\u306fhomepage\u3067\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n*homepage<br \/>\n\u3000\u30b9\u30af\u30ec\u30a4\u30d1\u30fc\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u969b\u306b\u3001\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u4e00\u8cab\u3057\u305f\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u3002<br \/>\n*login<br \/>\n\u3000\u30b9\u30b3\u30a2\u304c\u4f4e\u3044\u5834\u5408\u3001\u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306b2\u3064\u306e\u8981\u7d20\u8a8d\u8a3c\u307e\u305f\u306f\u96fb\u5b50\u30e1\u30fc\u30eb\u306e\u691c\u8a3c\u304c\u5fc5\u8981\u3068\u3059\u308b\u3002<br \/>\n*social<br \/>\n\u3000\u60aa\u610f\u306e\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u672a\u89e3\u6c7a\u306e\u53cb\u3060\u3061\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5236\u9650\u3057\u3001\u5371\u967a\u3067\u3042\u308b\u30b3\u30e1\u30f3\u30c8\u3092\u9001\u308b\u3002<br \/>\n*e-commerce<br \/>\n\u3000\u6b63\u5f0f\u306a\u53d6\u5f15\u3059\u308b\u524d\u306b\u5224\u65ad\u3059\u308b\u3053\u3068\u3067\u3001\u5371\u967a\u306a\u53d6\u5f15\u3092\u7279\u5b9a\u3059\u308b\u3002<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>POST\u5024\u3067\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u4e0b\u8a18API\u3092\u5b9f\u884c\u3057\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u308b\u3002<br \/>\n\uff08\u5b9f\u884c\u51e6\u7406\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u308a\u3051\u308a\u306a\u306e\u3067\u7565\uff09<br \/>\nhttps:\/\/www.google.com\/recaptcha\/api\/siteverify?secret=[\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc]&#038;response=[\uff30\uff2f\uff33\uff34\u3055\u308c\u305ftoken]<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u5185\u5bb9\u306f\u4e0b\u8a18\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\n{<br \/>\n  &#8216;success&#8217;: true|false,      \/\/ whether this request was a valid reCAPTCHA token for your site<br \/>\n  &#8216;score&#8217;: number             \/\/ the score for this request (0.0 &#8211; 1.0)<br \/>\n  &#8216;action&#8217;: string            \/\/ the action name for this request (important to verify)<br \/>\n  &#8216;challenge_ts&#8217;: timestamp,  \/\/ timestamp of the challenge load (ISO format yyyy-MM-dd&#8217;T&#8217;HH:mm:ssZZ)<br \/>\n  &#8216;hostname&#8217;: string,         \/\/ the hostname of the site where the reCAPTCHA was solved<br \/>\n  &#8216;error-codes&#8217;: [&#8230;]        \/\/ optional<br \/>\n}<\/p>\n<p>score\u5024\u3067bot\u5224\u5b9a\u3092\u884c\u3046\u3002<br \/>\n\u6570\u5024\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u305b\u308b\u304b\u3055\u305b\u306a\u3044\u304b\u30ed\u30b8\u30c3\u30af\u5074\u3067\u51e6\u7406\u3092\u5206\u5c90\u3059\u308b\u3002<\/p>\n<p>\u3069\u3046\u3084\u3063\u3066bot\u304b\u4eba\u9593\u304b\u3092\u6570\u5024\u5316\u3057\u3066\u5224\u5b9a\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u304b\u306d\u3002<br \/>\n\u901a\u5e38\u306e\u64cd\u4f5c\u3067\u4eba\u9593\u304c\u884c\u3046\u3068\u3060\u3044\u305f\u30440.9\u304c\u8fd4\u3063\u3066\u304d\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\uff08\u6570\u5024\u306f0.0\uff5e1.0\u30670.0\u306b\u8fd1\u3065\u304f\u3068bot\u306e\u53ef\u80fd\u6027\u5927\u3068\u3044\u3046\u5224\u5b9a\u3067\u3059\u3002\uff09<\/p>\n<p>\u4ee5\u4e0a\u3001reCAPTCHA v3\u306e\u5c0e\u5165\u307e\u3067\u306e\u6d41\u308c\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed5\u4e8b\u3067\u300creCAPTCHA v3\u300d\u5c0e\u5165\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001 \u6700\u65b0\u6d41\u884c\u3063\u3066\u3044\u308b\uff1freCAPTCHA\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u307e\u305a\u300creCAPTCHA\u300d\u3068\u306f\uff1f \u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u3092\u8a66\u307f\u308b&#8230;<a class=\"read-more-link button\" href=\"https:\/\/idealive.jp\/blog\/2019\/02\/25\/recaptcha-v3%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":7,"featured_media":808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/805"}],"collection":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":5,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions\/812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media\/808"}],"wp:attachment":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}