{"id":380513,"date":"2024-06-29T03:08:32","date_gmt":"2024-06-29T03:08:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=380513"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=380513","title":{"rendered":"<span>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Google reCAPTCHA v2 \u0438 v3 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0423 Google \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f reCAPTCHA v3. \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043e\u043d\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u044b\u043a\u0430\u0442\u044c \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u043e\u0432 \u0438 \u043f\u043e\u0436\u0430\u0440\u043d\u044b\u0445 \u0433\u0438\u0434\u0440\u0430\u043d\u0442\u043e\u0432, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0438\u0445 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u043e\u0442 0 \u0434\u043e 1. \u0427\u0435\u043c \u0432\u044b\u0448\u0435 \u0431\u0430\u043b\u043b, \u0442\u0435\u043c <s>\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0435\u0439 \u043d\u0430\u0448 \u0431\u043e\u0442<\/s> \u0432\u044b\u0448\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439. \u041e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u043e\u0440\u043e\u0433 \u0440\u0430\u0432\u043d\u044b\u043c 0.5.<\/p>\n<p>\u0410 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0430\u0439\u0442\u0430, \u043d\u043e \u0435\u0441\u0442\u044c \u0443 \u0435\u0433\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043d\u0435\u043a\u0430\u044f \u043e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0430\u044f \u0441\u0442\u043e\u043b\u044c \u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0438 \u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0431\u043e\u0442? <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 &#8212; \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 &#8212; \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u0438\u0434\u0438\u043c\u0430\u044f \u043a\u0430\u043f\u0447\u0430!<\/p>\n<h2>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c<\/h2>\n<p>\u0422\u0443\u0442 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. <a href=\"https:\/\/github.com\/berryllium\/captcha_v2_plus_v3\" rel=\"noopener noreferrer nofollow\">\u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 github<\/a>. \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b config.example.php \u0432 config.php \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043d\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 (site key) \u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 (secret key) \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 \u043e\u0431\u0435\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 Google reCAPTCHA <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043a\u0440\u0438\u043f\u0442, \u0443\u043a\u0430\u0437\u0430\u0432 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432\u0435\u0440\u0441\u0438\u0438 3<\/p>\n<pre><code class=\"php\">&lt;script src=\"https:\/\/www.google.com\/recaptcha\/api.js?render=KEY_SITE_V3\">&lt;\/script><\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0432\u0430 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u043b\u044f \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0438\u0434\u0438\u043c\u0430\u044f \u043a\u0430\u043f\u0447\u0430. \u0411\u043b\u043e\u043a\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 &#171;id&#187;.<\/p>\n<pre><code class=\"php\">&lt;input type=\"hidden\" name=\"captcha_token_v2\"> &lt;input type=\"hidden\" name=\"captcha_token_v3\"> &lt;div id=\"captcha\">&lt;\/div><\/code><\/pre>\n<p>\u0424\u043e\u0440\u043c\u0430 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e ajax. \u041f\u0438\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u043b\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u044b. \u0422\u0443\u0442:<\/p>\n<ul>\n<li>\n<p><code>form<\/code> &#8212; \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0444\u043e\u0440\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>captcha_key_site_v3<\/code> &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043a\u0430\u043f\u0447\u0438 3 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>token<\/code> &#8212; \u0442\u043e\u043a\u0435\u043d, \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043f\u043e \u043d\u0435\u043c\u0443 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0435\u0440\u0432\u0438\u0441 Google \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0431\u0430\u043b\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<p>&#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f grecaptcha \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Google, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443.<\/p>\n<pre><code class=\"javascript\">form.submit(function (e){   e.preventDefault()   if (typeof grecaptcha != 'undefined' &amp;&amp; typeof captcha_key_site_v3 != 'undefined') {     grecaptcha.ready(function () {       grecaptcha.execute(captcha_key_site_v3, {action: 'submit'}).then(function (token) {         if(token) {           form.find('input[name=\"captcha_token_v3\"]').val(token)           sendForm()         }       })     })   } })<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>sendForm<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c ajax \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0444\u043e\u0440\u043c\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u0438\u043d\u044f\u0442\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 3 (\u043d\u0435 \u043e\u0442\u0447\u0435\u0447\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0430\u043b\u043b\u043e\u0432), \u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u043a\u0430\u043f\u0447\u0443 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"javascript\">function sendForm() {                 let data = form.serialize()                 $.ajax({                     type: 'POST',                     url: form.attr('action'),                     data: data,                     dataType: 'json',                     success: function (response) {                         if(response.success) {                             \/\/ \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443                             $('.alert').text(response.text).slideDown()                             setTimeout(function (){location.reload()}, 4000)                         } else if(response.error) {                             \/\/ \u0435\u0441\u043b\u0438 \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043a\u0430\u043f\u0447\u0438, \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043f\u0447\u043a\u0443 v2 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438                             if (widgetCaptcha !== false) {                                 grecaptcha.reset(widgetCaptcha)                             }                             \/\/ \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 v3, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u043f\u0447\u0443 v2                             \/\/ widgetCaptcha - \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0442.\u0435. \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0448\u0442\u0443\u043a\u0430\u043c\u0438                             if (response.error === 'fall_captcha_v3' &amp;&amp; !widgetCaptcha) {                                 widgetCaptcha = grecaptcha.render('captcha', {                                     'sitekey': captcha_key_site_v2,                                     'theme': 'dark',                                     'callback': setTokenV2                                 })                             }                         }                     }                 })             }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434\u0443 <code>render<\/code> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c id \u0431\u043b\u043e\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0430 \u043a\u0430\u043f\u0447\u0430, \u0432\u0442\u043e\u0440\u044b\u043c &#8212; \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code>sitekey<\/code> &#8212; \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043a\u0430\u043f\u0447\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<li>\n<p><code>theme<\/code> &#8212; \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043a\u0430\u043f\u0447\u0438, \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <em>dark \/ light<\/em><\/p>\n<\/li>\n<li>\n<p><code>callback<\/code> &#8212; \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u0430\u043f\u0447\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<\/ul>\n<p><code>WidgetCaptcha<\/code> &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u0430\u043f\u0447\u0438, \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u0440\u043c, \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u043a\u0430\u043f\u0447\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>grecaptcha.reset(WidgetCaptcha)<\/code><\/p>\n<p>\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u043a\u043e\u043b\u043b\u0431\u0435\u043a\u0435 <code>setTokenV2<\/code> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u043f\u0447\u0438, \u0435\u0433\u043e \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0435 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435<\/p>\n<pre><code class=\"javascript\">function setTokenV2(token) {   form.find('input[name=\"captcha_token_v2\"]').val(token) }<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0437\u0432\u0430\u0442\u044c <code>sendForm()<\/code> \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0444\u043e\u0440\u043c\u0430 \u0443\u043b\u0435\u0442\u0430\u0435\u0442 \u0443\u0436\u0435 \u0441 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d \u0432\u0435\u0440\u0441\u0438\u0438 2, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u043d\u0435\u043c\u0443 \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043d\u043e\u0444\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442 Google, \u0438 \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0433\u0434\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u043e\u0434 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 ajax.php:<\/p>\n<pre><code class=\"php\">&lt;?php require_once 'config.php'; session_start(); if(!empty($_POST) &amp;&amp; $_POST['sid'] == session_id()) {     $token_v2 = $_POST['captcha_token_v2'];     $token_v3 = $_POST['captcha_token_v3'];     $result = checkCaptcha($token_v2, $token_v3);     die(json_encode($result, true)); }  function checkCaptcha($token_v2 = false, $token_v3 = false) {     \/\/ \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443     if (!$token_v3 &amp;&amp; !$token_v2) {         return ['error' => 'fall_captcha'];     }     \/\/ \u0435\u0441\u043b\u0438 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u043a\u0430\u043f\u0447\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438     elseif ($token_v2) {         \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0435\u0441\u043b\u0438 google \u043e\u0442\u0432\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0430\u044f - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0445         $result = checkCaptchaCurl($token_v2, KEY_SECRET_V2);         if (!$result['success']) {             \/\/ \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c - \u0442\u043e\u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0430             return ['error' => 'fall_captcha_v2'];         }     }     \/\/ \u0435\u0441\u043b\u0438 \u0442\u043e\u043a\u0435\u043d \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0435\u0449\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d, \u043d\u043e \u0435\u0441\u0442\u044c 3, \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u043f\u0447\u0443     else {         $result = checkCaptchaCurl($token_v3, KEY_SECRET_V3);         \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 \u043e\u0442 0 \u0434\u043e 1. \u0427\u0435\u043c \u0431\u043b\u0438\u0436\u0435 \u043a 1, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a         if ($result['score'] &lt; 1) {             return ['error' => 'fall_captcha_v3'];         }     }     \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0445, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b     $text = 'Your message \"' . $_POST['text'] . '\" was send to email \"' . $_POST['email'] . '\" successfully';     return ['success' => true, 'text' => $text]; }  \/**  * \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 google \u0447\u0435\u0440\u0435\u0437 CURL  * @param $response  * @param $secret  * @return mixed  *\/ function checkCaptchaCurl($response, $secret) {     $url_data = 'https:\/\/www.google.com\/recaptcha\/api\/siteverify' . '?secret=' . $secret . '&amp;response=' . $response . '&amp;remoteip=' . $_SERVER['REMOTE_ADDR'];     $curl = curl_init();     curl_setopt($curl, CURLOPT_URL, $url_data);     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);     $captcha_res = curl_exec($curl);     curl_close($curl);     $captcha_res = json_decode($captcha_res, true);     return $captcha_res; }  <\/code><\/pre>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0442\u0435, \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/582984\/\"> https:\/\/habr.com\/ru\/articles\/582984\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0423 Google \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f reCAPTCHA v3. \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043e\u043d\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u044b\u043a\u0430\u0442\u044c \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u043e\u0432 \u0438 \u043f\u043e\u0436\u0430\u0440\u043d\u044b\u0445 \u0433\u0438\u0434\u0440\u0430\u043d\u0442\u043e\u0432, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0438\u0445 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u043e\u0442 0 \u0434\u043e 1. \u0427\u0435\u043c \u0432\u044b\u0448\u0435 \u0431\u0430\u043b\u043b, \u0442\u0435\u043c <s>\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0435\u0439 \u043d\u0430\u0448 \u0431\u043e\u0442<\/s> \u0432\u044b\u0448\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439. \u041e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u043e\u0440\u043e\u0433 \u0440\u0430\u0432\u043d\u044b\u043c 0.5.<\/p>\n<p>\u0410 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0430\u0439\u0442\u0430, \u043d\u043e \u0435\u0441\u0442\u044c \u0443 \u0435\u0433\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043d\u0435\u043a\u0430\u044f \u043e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0430\u044f \u0441\u0442\u043e\u043b\u044c \u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0438 \u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0431\u043e\u0442? <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 &#8212; \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 &#8212; \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u0438\u0434\u0438\u043c\u0430\u044f \u043a\u0430\u043f\u0447\u0430!<\/p>\n<h2>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c<\/h2>\n<p>\u0422\u0443\u0442 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. <a href=\"https:\/\/github.com\/berryllium\/captcha_v2_plus_v3\" rel=\"noopener noreferrer nofollow\">\u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 github<\/a>. \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b config.example.php \u0432 config.php \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043d\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 (site key) \u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 (secret key) \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 \u043e\u0431\u0435\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 Google reCAPTCHA <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043a\u0440\u0438\u043f\u0442, \u0443\u043a\u0430\u0437\u0430\u0432 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432\u0435\u0440\u0441\u0438\u0438 3<\/p>\n<pre><code class=\"php\">&lt;script src=\"https:\/\/www.google.com\/recaptcha\/api.js?render=KEY_SITE_V3\">&lt;\/script><\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0432\u0430 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u043b\u044f \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0438\u0434\u0438\u043c\u0430\u044f \u043a\u0430\u043f\u0447\u0430. \u0411\u043b\u043e\u043a\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 &#171;id&#187;.<\/p>\n<pre><code class=\"php\">&lt;input type=\"hidden\" name=\"captcha_token_v2\"> &lt;input type=\"hidden\" name=\"captcha_token_v3\"> &lt;div id=\"captcha\">&lt;\/div><\/code><\/pre>\n<p>\u0424\u043e\u0440\u043c\u0430 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e ajax. \u041f\u0438\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u043b\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u044b. \u0422\u0443\u0442:<\/p>\n<ul>\n<li>\n<p><code>form<\/code> &#8212; \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0444\u043e\u0440\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>captcha_key_site_v3<\/code> &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043a\u0430\u043f\u0447\u0438 3 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>token<\/code> &#8212; \u0442\u043e\u043a\u0435\u043d, \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043f\u043e \u043d\u0435\u043c\u0443 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0435\u0440\u0432\u0438\u0441 Google \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0431\u0430\u043b\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<p>&#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f grecaptcha \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Google, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443.<\/p>\n<pre><code class=\"javascript\">form.submit(function (e){   e.preventDefault()   if (typeof grecaptcha != 'undefined' &amp;&amp; typeof captcha_key_site_v3 != 'undefined') {     grecaptcha.ready(function () {       grecaptcha.execute(captcha_key_site_v3, {action: 'submit'}).then(function (token) {         if(token) {           form.find('input[name=\"captcha_token_v3\"]').val(token)           sendForm()         }       })     })   } })<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>sendForm<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c ajax \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0444\u043e\u0440\u043c\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u0438\u043d\u044f\u0442\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 3 (\u043d\u0435 \u043e\u0442\u0447\u0435\u0447\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0430\u043b\u043b\u043e\u0432), \u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u043a\u0430\u043f\u0447\u0443 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"javascript\">function sendForm() {                 let data = form.serialize()                 $.ajax({                     type: 'POST',                     url: form.attr('action'),                     data: data,                     dataType: 'json',                     success: function (response) {                         if(response.success) {                             \/\/ \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443                             $('.alert').text(response.text).slideDown()                             setTimeout(function (){location.reload()}, 4000)                         } else if(response.error) {                             \/\/ \u0435\u0441\u043b\u0438 \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043a\u0430\u043f\u0447\u0438, \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043f\u0447\u043a\u0443 v2 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438                             if (widgetCaptcha !== false) {                                 grecaptcha.reset(widgetCaptcha)                             }                             \/\/ \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 v3, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u043f\u0447\u0443 v2                             \/\/ widgetCaptcha - \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0442.\u0435. \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0448\u0442\u0443\u043a\u0430\u043c\u0438                             if (response.error === 'fall_captcha_v3' &amp;&amp; !widgetCaptcha) {                                 widgetCaptcha = grecaptcha.render('captcha', {                                     'sitekey': captcha_key_site_v2,                                     'theme': 'dark',                                     'callback': setTokenV2                                 })                             }                         }                     }                 })             }<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434\u0443 <code>render<\/code> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c id \u0431\u043b\u043e\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0430 \u043a\u0430\u043f\u0447\u0430, \u0432\u0442\u043e\u0440\u044b\u043c &#8212; \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code>sitekey<\/code> &#8212; \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043a\u0430\u043f\u0447\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<li>\n<p><code>theme<\/code> &#8212; \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043a\u0430\u043f\u0447\u0438, \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <em>dark \/ light<\/em><\/p>\n<\/li>\n<li>\n<p><code>callback<\/code> &#8212; \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u0430\u043f\u0447\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 2<\/p>\n<\/li>\n<\/ul>\n<p><code>WidgetCaptcha<\/code> &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u0430\u043f\u0447\u0438, \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u0440\u043c, \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u043a\u0430\u043f\u0447\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>grecaptcha.reset(WidgetCaptcha)<\/code><\/p>\n<p>\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u043a\u043e\u043b\u043b\u0431\u0435\u043a\u0435 <code>setTokenV2<\/code> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u043f\u0447\u0438, \u0435\u0433\u043e \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0435 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435<\/p>\n<pre><code class=\"javascript\">function setTokenV2(token) {   form.find('input[name=\"captcha_token_v2\"]').val(token) }<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0437\u0432\u0430\u0442\u044c <code>sendForm()<\/code> \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0444\u043e\u0440\u043c\u0430 \u0443\u043b\u0435\u0442\u0430\u0435\u0442 \u0443\u0436\u0435 \u0441 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d \u0432\u0435\u0440\u0441\u0438\u0438 2, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u043d\u0435\u043c\u0443 \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043d\u043e\u0444\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0442 Google, \u0438 \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0433\u0434\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u043e\u0434 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 ajax.php:<\/p>\n<pre><code class=\"php\">&lt;?php require_once 'config.php'; session_start(); if(!empty($_POST) &amp;&amp; $_POST['sid'] == session_id()) {     $token_v2 = $_POST['captcha_token_v2'];     $token_v3 = $_POST['captcha_token_v3'];     $result = checkCaptcha($token_v2, $token_v3);     die(json_encode($result, true)); }  function checkCaptcha($token_v2 = false, $token_v3 = false) {     \/\/ \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443     if (!$token_v3 &amp;&amp; !$token_v2) {         return ['error' => 'fall_captcha'];     }     \/\/ \u0435\u0441\u043b\u0438 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u043a\u0430\u043f\u0447\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438     elseif ($token_v2) {         \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0435\u0441\u043b\u0438 google \u043e\u0442\u0432\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0430\u044f - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0445         $result = checkCaptchaCurl($token_v2, KEY_SECRET_V2);         if (!$result['success']) {             \/\/ \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c - \u0442\u043e\u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0430             return ['error' => 'fall_captcha_v2'];         }     }     \/\/ \u0435\u0441\u043b\u0438 \u0442\u043e\u043a\u0435\u043d \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0435\u0449\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d, \u043d\u043e \u0435\u0441\u0442\u044c 3, \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u043f\u0447\u0443     else {         $result = checkCaptchaCurl($token_v3, KEY_SECRET_V3);         \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 \u043e\u0442 0 \u0434\u043e 1. \u0427\u0435\u043c \u0431\u043b\u0438\u0436\u0435 \u043a 1, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a         if ($result['score'] &lt; 1) {             return ['error' => 'fall_captcha_v3'];         }     }     \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0445, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b     $text = 'Your message \"' . $_POST['text'] . '\" was send to email \"' . $_POST['email'] . '\" successfully';     return ['success' => true, 'text' => $text]; }  \/**  * \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 google \u0447\u0435\u0440\u0435\u0437 CURL  * @param $response  * @param $secret  * @return mixed  *\/ function checkCaptchaCurl($response, $secret) {     $url_data = 'https:\/\/www.google.com\/recaptcha\/api\/siteverify' . '?secret=' . $secret . '&amp;response=' . $response . '&amp;remoteip=' . $_SERVER['REMOTE_ADDR'];     $curl = curl_init();     curl_setopt($curl, CURLOPT_URL, $url_data);     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);     $captcha_res = curl_exec($curl);     curl_close($curl);     $captcha_res = json_decode($captcha_res, true);     return $captcha_res; }  <\/code><\/pre>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0442\u0435, \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/582984\/\"> https:\/\/habr.com\/ru\/articles\/582984\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-380513","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/380513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380513"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/380513\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}