{"id":518811,"date":"2020-01-23T06:02:31","date_gmt":"2020-01-23T06:02:31","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=518543\/"},"modified":"2024-06-04T06:39:16","modified_gmt":"2024-06-04T06:39:16","slug":"como-integrar-o-google-recaptcha-ao-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/","title":{"rendered":"Como integrar o Google reCAPTCHA ao PHP?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Hoje em dia, todo mundo quer se livrar do spam em seus sites, sejam coment\u00e1rios de spam, mensagens de spam ou tr\u00e1fego de spam em seu site. Para proteger seu site contra spam, uma das maneiras melhores e mais f\u00e1ceis \u00e9 usar <strong><a href=\"https:\/\/www.knowband.com\/search&amp;search=google%20recaptcha\">Google reCAPTCHA.<\/a><\/strong><\/p>\n<p style=\"text-align: justify;\">Antigamente, as pessoas costumavam colocar algum n\u00famero ou string aleat\u00f3rio na tela e verific\u00e1-lo no lado do servidor. Mas esse m\u00e9todo \u00e9 o m\u00e9todo antigo e tamb\u00e9m demorado para muitos usu\u00e1rios, enquanto o m\u00e9todo reCAPTCHA do Google \u00e9 f\u00e1cil de usar e leva menos tempo, resultando em uma melhor experi\u00eancia do usu\u00e1rio. Eles s\u00f3 precisam de um clique para provar que s\u00e3o humanos e n\u00e3o um rob\u00f4. O Google reCAPTCHA \u00e9 muito f\u00e1cil de implementar em um script PHP.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-518544\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png\" alt=\"Google reCAPTCHA\" width=\"495\" height=\"132\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png 616w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1-300x80.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Recomendado Read:<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/pt-br\/prestashop-pt-br\/como-integrar-a-prote%c3%a7%c3%a3o-do-google-recaptcha-%c3%a0-sua-loja-prestashop\/\">Como integrar a prote\u00e7\u00e3o Google ReCaptcha na sua loja PrestaShop?<\/a><\/p>\n<h2 style=\"text-align: justify;\">Neste blog, voc\u00ea aprender\u00e1 como integrar o Google reCaptcha ao PHP em nosso guia passo a passo.<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Aprenda-como-integrar-o-Google-reCaptcha-com-PHP-no-guia-passo-a-passo-da-Knowband.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824443 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Aprenda-como-integrar-o-Google-reCaptcha-com-PHP-no-guia-passo-a-passo-da-Knowband.png\" alt=\"Aprenda como integrar o Google reCaptcha com PHP no guia passo a passo da Knowband\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Aprenda-como-integrar-o-Google-reCaptcha-com-PHP-no-guia-passo-a-passo-da-Knowband.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Aprenda-como-integrar-o-Google-reCaptcha-com-PHP-no-guia-passo-a-passo-da-Knowband-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\">Etapa 1: para buscar a chave da API reCAPTCHA do Google<\/h3>\n<p class=\"gt-block\" style=\"text-align: justify;\">Para obter uma chave de API para usar o reCAPTCHA com PHP, voc\u00ea precisa registrar seu site em \u2013 <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" target=\"_blank\">https:\/\/www.google.com\/recaptcha\/admin<\/a>. As capturas de tela s\u00e3o fornecidas abaixo para sua ajuda:<\/p>\n<p class=\"gt-block alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824400 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png\" alt=\"Obtenha a chave da API reCAPTCHA do Google - Knowband\" width=\"845\" height=\"684\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png 845w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2-300x243.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2-768x622.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><br \/>\n<strong>Gravadora:<\/strong> Use um r\u00f3tulo de sua escolha, para que seja f\u00e1cil reconhecer o site no futuro. Voc\u00ea pode adicionar o nome da sua marca ou URL do site neste campo para melhorar a legibilidade do nome do projeto.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>tipo reCAPTCHA:<\/strong> Escolha qualquer tipo de reCAPTCHA de sua prefer\u00eancia para o seu site. Existem dois tipos dispon\u00edveis atualmente, ou seja, reCAPTCHA v3 e reCAPTCHA v2. Usamos o reCAPTCHA v2 no projeto de exemplo.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Dom\u00ednios:<\/strong> Aqui voc\u00ea precisa inserir o nome do site para o qual implementar\u00e1 a funcionalidade reCAPTCHA. Aplica-se aos dom\u00ednios que voc\u00ea insere aqui e tamb\u00e9m aos seus subdom\u00ednios. Por exemplo, um registro em abc.com tamb\u00e9m registra xyz.abc.com.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Agora basta marcar a caixa de sele\u00e7\u00e3o de <strong>Aceite os Termos de Servi\u00e7o do reCAPTCHA e clique em<\/strong> no bot\u00e3o Enviar.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Agora voc\u00ea tem a chave do site e a chave secreta do seu site.<br \/>\n<a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824401 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png\" alt=\"A chave do site e a chave secreta do seu site - Knowband\" width=\"845\" height=\"448\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png 845w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website-300x159.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website-768x407.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\">Etapa 2: Para implementar o Google reCaptcha com PHP, a segunda etapa \u00e9 implementar a funcionalidade reCAPTHA em seu site:<\/h3>\n<ul>\n<li style=\"text-align: justify;\">Para adicionar reCAPTCHA em PHP, primeiro voc\u00ea precisa incluir a biblioteca reCAPTCHA JavaScript em seu HTML.\n<pre class=\"brush: actionscript3; gutter: true\"><\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Agora adicione este c\u00f3digo HTML onde deseja mostrar o widget reCAPTCHA.\n<pre class=\"brush: actionscript3; gutter: true\"><\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Substitua \u201csite_key\u201d pela chave do site fornecida pelo Google para o seu site.<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align: justify;\">Agora est\u00e1 feito, basta atualizar sua p\u00e1gina e voc\u00ea ver\u00e1 o widget reCAPTCHA em seu site.<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">Etapa 3: Para validar a resposta do usu\u00e1rio<\/h3>\n<p style=\"text-align: justify;\">Agora, voc\u00ea precisa validar a resposta quando um usu\u00e1rio clica no widget reCAPTCHA. O c\u00f3digo PHP para verificar a resposta do usu\u00e1rio \u00e9 fornecido abaixo:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">sucesso) { $succMsg = &#039;Sua solicita\u00e7\u00e3o de contato foi enviada com sucesso.&#039;; } else { $errMsg = &#039;Falha na verifica\u00e7\u00e3o do rob\u00f4, tente novamente.&#039;; } } ?&gt;<\/pre>\n<p style=\"text-align: justify;\">Adicione sua chave secreta real no c\u00f3digo acima e pronto.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Obtenha o c\u00f3digo de amostra <a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/recaptcha_blog.txt\" target=\"_blank\">SUA PARTICIPA\u00c7\u00c3O FAZ A DIFEREN\u00c7A<\/a>.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Recomendado Read:<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/pt-br\/prestashop-pt-br\/dois-m%c3%b3dulos-eficazes-para-afastar-spammers-e-bots-da-loja-prestashop\/\">Dois m\u00f3dulos eficazes para afastar spammers e bots da loja PrestaShop<\/a><\/p>\n<p class=\"gt-block alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/M\u00f3dulo-Google-reCaptcha-dispon\u00edvel-para-Prestashop-e-Opencart-pela-Knowband.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824440 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/M\u00f3dulo-Google-reCaptcha-dispon\u00edvel-para-Prestashop-e-Opencart-pela-Knowband.png\" alt=\"M\u00f3dulo Google reCaptcha dispon\u00edvel para Prestashop e Opencart pela Knowband\" width=\"760\" height=\"395\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/M\u00f3dulo-Google-reCaptcha-dispon\u00edvel-para-Prestashop-e-Opencart-pela-Knowband.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/M\u00f3dulo-Google-reCaptcha-dispon\u00edvel-para-Prestashop-e-Opencart-pela-Knowband-300x156.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a>A Knowband oferece o complemento Google ReCaptcha para v\u00e1rias plataformas, incluindo <strong><a href=\"https:\/\/www.knowband.com\/prestashop-google-recaptcha\">PrestaShop<\/a>, <\/strong>e<strong> <a href=\"https:\/\/www.knowband.com\/opencart-google-recaptcha\">OpenCart<\/a>.<\/strong> O m\u00f3dulo Google ReCaptcha \u00e9 uma ferramenta de seguran\u00e7a poderosa que protege seu site contra entradas de spam, ao mesmo tempo que facilita o acesso para usu\u00e1rios reais.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guia-de-Knowband-sobre-o-plugin-Google-Recaptcha-que-pode-ser-usado-de-v\u00e1rias-formas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824444 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guia-de-Knowband-sobre-o-plugin-Google-Recaptcha-que-pode-ser-usado-de-v\u00e1rias-formas.png\" alt=\"Guia de Knowband sobre o plugin Google Recaptcha que pode ser usado de v\u00e1rias formas\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guia-de-Knowband-sobre-o-plugin-Google-Recaptcha-que-pode-ser-usado-de-v\u00e1rias-formas.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guia-de-Knowband-sobre-o-plugin-Google-Recaptcha-que-pode-ser-usado-de-v\u00e1rias-formas-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">O plug-in Google ReCaptcha pode ser usado para login, registro, redefini\u00e7\u00e3o de senha, formul\u00e1rios de contato conhecidos e outras coisas. As imagens s\u00e3o mostradas no complemento Google ReCaptcha como parte de seus processos de valida\u00e7\u00e3o padr\u00e3o para ajudar a identificar humanos.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">Este m\u00f3dulo Google reCaptcha oferece excelente desempenho e \u00e9 extremamente personaliz\u00e1vel. No back-end dos m\u00f3dulos Knowband, o e-comerciante pode ajustar rapidamente o complemento Google reCaptcha.<\/p>\n<div class=\"module_in_content_container\">\n<div class=\"module_content\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"module_image\" src=\"https:\/\/www.knowband.com\/image\/cache\/data\/Plugin%20Logo\/recaptcha-300x300.png\" alt=\"Knowband - Prestashop Google ReCaptcha Addon\" width=\"100\" height=\"100\" \/><\/p>\n<div class=\"module_content_part\">\n<h3 class=\"title\">Complemento Prestashop Google ReCaptcha<\/h3>\n<p class=\"module_content_text\">PrestaShop Google reCaptcha da Knowband aumenta a seguran\u00e7a da sua loja integrando o Google reCaptcha, evitando spam e bots automatizados.<\/p>\n<p><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/prestashop-google-recaptcha\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">Compre agora<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<style>\n.module_in_content_container { display: flex; flex-direction: column; padding: 20px; border: 1px solid #ccc; font-size: 16px; line-height: 26px; box-shadow: 0 3px 0 #ebebeb; -webkit-box-shadow: 0 3px 0 #ebebeb; position: relative; margin-bottom: 1.5em; } .module_in_content_container>a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .module_content { display: flex; align-items: flex-start; } .module_content img { max-width: 100px; margin-right: 20px; } .module_content_part p.module_content_text { margin-bottom: 10px; margin-top: 0; font-size: 18px; color: #000; } .module_content h3 { font-size: 24px; font-weight: 700; line-height: 1.5em; padding-left: 0; padding-top: 0; margin: 0; } .read-more { font-size: 18px; font-weight: 700; line-height: 1.5em; position: relative; display: inline-block; text-transform: uppercase; color: #f36; } .read-more:after { position: absolute; content: ''; width: 1.5em; height: 1.5em; top: -1px; right: -1.5em; background: url(https:\/\/knowband.com\/mobile-app\/wp-content\/uploads\/images\/readmore-arrow.svg) no-repeat center \/ .75em; transition: all .2s; } .read-more:focus, .read-more:hover { text-decoration: none; cursor: pointer; } .read-more:hover:after { right: -2em; transition: all .2s; } @media (max-width: 600px) { .module_content { flex-direction: column; align-items: center; text-align: center; } .module_content img { margin: 0 auto 20px auto; max-width: 100%; } .module_content .title { flex-basis: auto; margin-top: 20px; } .module_content_part p.module_content_text { font-size: 16px; line-height: 24px; } .read-more { font-size: 16px;}}<\/style>\n<h2 style=\"text-align: justify;\">Palavras finais:<\/h2>\n<p>Implementar o Google reCAPTCHA em sites \u00e9 essencial para a seguran\u00e7a. Ajuda a diferenciar usu\u00e1rios reais de bots, evitando spam e ataques automatizados. Isso mant\u00e9m os dados do usu\u00e1rio seguros e garante que o site funcione sem problemas. Ao bloquear o tr\u00e1fego prejudicial, o reCAPTCHA melhora a experi\u00eancia do usu\u00e1rio, tornando as intera\u00e7\u00f5es online mais seguras e confi\u00e1veis.<\/p>\n<p><strong>Leitura recomendada &#8211;<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/pt-br\/prestashop-pt-br\/capacite-a-seguran%c3%a7a-da-sua-loja-prestashop-com-os-principais-m%c3%b3dulos-prestashop-da-knowband\/\">Capacite a seguran\u00e7a da sua loja PrestaShop com os principais m\u00f3dulos PrestaShop da Knowband<\/a><br \/>\nJunto com isso, o Google reCaptcha tamb\u00e9m \u00e9 compat\u00edvel com o One Page Checkout da Knowband, protegendo voc\u00ea contra fraudes em transa\u00e7\u00f5es. \u00c9 a melhor maneira de proteger sua loja contra fraudes em transa\u00e7\u00f5es. Para ver a demonstra\u00e7\u00e3o administrativa e a demonstra\u00e7\u00e3o front-end do M\u00f3dulo Google reCaptcha, visite nosso <a href=\"https:\/\/www.knowband.com\/search&amp;search=google%20recaptcha\">loja<\/a>.<\/p>\n<p><strong>Evite permitir que spammers prejudiquem o seu neg\u00f3cio!<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/rdMl51HiB4g\" width=\"660\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Hoje em dia, todo mundo quer se livrar do spam em seus sites, sejam coment\u00e1rios de spam, mensagens de spam ou tr\u00e1fego de spam em seu site. Para proteger seu site contra spam, uma das maneiras melhores e mais f\u00e1ceis \u00e9 usar Google reCAPTCHA. Antigamente, as pessoas costumavam colocar algum n\u00famero ou string aleat\u00f3rio [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":824442,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[3274],"tags":[20035,28335,20036,20037,34892],"class_list":["post-518811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dicas","tag-google-recaptcha-com-php","tag-integrao-do-google-recaptcha","tag-integrao-google-recaptcha","tag-integrar-o-google-recaptcha","tag-recaptcha-do-google-com-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Hoje em dia, todo mundo quer se livrar do spam em seus sites, sejam coment\u00e1rios de spam, mensagens de spam ou tr\u00e1fego de spam em seu site. Para proteger seu site contra spam, uma das maneiras melhores e mais f\u00e1ceis \u00e9 usar Google reCAPTCHA. Antigamente, as pessoas costumavam colocar algum n\u00famero ou string aleat\u00f3rio [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-23T06:02:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-04T06:39:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aparajita Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aparajita Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/\"},\"author\":{\"name\":\"Aparajita Singh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\"},\"headline\":\"Como integrar o Google reCAPTCHA ao PHP?\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:39:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/\"},\"wordCount\":825,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png\",\"keywords\":[\"Google recaptcha com PHP\",\"integra\u00e7\u00e3o do google reCAPTCHA\",\"integra\u00e7\u00e3o google reCAPTCHA\",\"Integrar o Google reCAPTCHA\",\"Recaptcha do Google com PHP\"],\"articleSection\":[\"Dicas\"],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/\",\"name\":\"Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:39:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png\",\"width\":760,\"height\":300,\"caption\":\"Integre o Google reCAPTCHA com PHP -Knowband\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/como-integrar-o-google-recaptcha-ao-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como integrar o Google reCAPTCHA ao PHP?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\",\"name\":\"Aparajita Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"caption\":\"Aparajita Singh\"},\"description\":\"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/author\\\/aparajitasingh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/","og_locale":"pt_BR","og_type":"article","og_title":"Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules","og_description":"&nbsp; Hoje em dia, todo mundo quer se livrar do spam em seus sites, sejam coment\u00e1rios de spam, mensagens de spam ou tr\u00e1fego de spam em seu site. Para proteger seu site contra spam, uma das maneiras melhores e mais f\u00e1ceis \u00e9 usar Google reCAPTCHA. Antigamente, as pessoas costumavam colocar algum n\u00famero ou string aleat\u00f3rio [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2020-01-23T06:02:31+00:00","article_modified_time":"2024-06-04T06:39:16+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png","type":"image\/png"}],"author":"Aparajita Singh","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Aparajita Singh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/"},"author":{"name":"Aparajita Singh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c"},"headline":"Como integrar o Google reCAPTCHA ao PHP?","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:39:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/"},"wordCount":825,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png","keywords":["Google recaptcha com PHP","integra\u00e7\u00e3o do google reCAPTCHA","integra\u00e7\u00e3o google reCAPTCHA","Integrar o Google reCAPTCHA","Recaptcha do Google com PHP"],"articleSection":["Dicas"],"inLanguage":"pt-BR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/","url":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/","name":"Como integrar o Google reCAPTCHA ao PHP? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:39:16+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integre-o-Google-reCAPTCHA-com-PHP-Knowband.png","width":760,"height":300,"caption":"Integre o Google reCAPTCHA com PHP -Knowband"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/como-integrar-o-google-recaptcha-ao-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Como integrar o Google reCAPTCHA ao PHP?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c","name":"Aparajita Singh","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","caption":"Aparajita Singh"},"description":"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.","url":"https:\/\/www.knowband.com\/blog\/pt-br\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts\/518811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/comments?post=518811"}],"version-history":[{"count":3,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts\/518811\/revisions"}],"predecessor-version":[{"id":824870,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts\/518811\/revisions\/824870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/media\/824442"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/media?parent=518811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/categories?post=518811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/tags?post=518811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}