{"id":518543,"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:29:14","modified_gmt":"2024-06-04T06:29:14","slug":"integrate-google-recaptcha-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/","title":{"rendered":"How to Integrate Google reCAPTCHA with PHP?"},"content":{"rendered":"<p style=\"text-align: justify;\">Nowadays everyone wants to get rid of spam on their website whether it is spam comments or spam messages or spam traffic on your site. To protect your website from spam, one of the best and easiest ways is to use <strong><a href=\"https:\/\/www.knowband.com\/search&amp;search=google%20recaptcha\">Google reCAPTCHA.<\/a><\/strong><\/p>\n<p style=\"text-align: justify;\">In earlier days, people used to put some random number or string on the screen and verify it on the server-side. But this method is the old-day method and it is also time taking for many users whereas Google\u2019s reCAPTCHA method is easy to use and takes less time resulting in a better user experience. They just need a single click to prove that they are humans and not a robot. Google reCAPTCHA is very easy to implement in a PHP script.<\/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 style=\"text-align: justify;\"><strong>Recommended Read:<\/strong>\u00a0<a href=\"https:\/\/www.knowband.com\/blog\/prestashop-blog\/integrate-google-recaptcha-protection-prestashop-store\/\">How to integrate Google ReCaptcha protection on your PrestaShop store?<\/a><\/p>\n<h2 style=\"text-align: justify;\">In this blog, you will learn how to Integrate Google reCaptcha with PHP in our step by step guide.<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Learn-how-to-Integrate-Google-reCaptcha-with-PHP-in-Knowbands-step-by-step-guide.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824403 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Learn-how-to-Integrate-Google-reCaptcha-with-PHP-in-Knowbands-step-by-step-guide.png\" alt=\"Learn how to Integrate Google reCaptcha with PHP in Knowband's step by step guide\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Learn-how-to-Integrate-Google-reCaptcha-with-PHP-in-Knowbands-step-by-step-guide.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Learn-how-to-Integrate-Google-reCaptcha-with-PHP-in-Knowbands-step-by-step-guide-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\">Step 1: To fetch the Google reCAPTCHA API key<\/h3>\n<p style=\"text-align: justify;\">To get an API key to use reCAPTCHA with PHP, you need to register your website at &#8211; <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" target=\"_blank\">https:\/\/www.google.com\/recaptcha\/admin<\/a>. The screenshots are given below for your help:<\/p>\n<p class=\"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=\"Fetch the Google reCAPTCHA API key - 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>Label:<\/strong> Use a label of your own choice, so that it is easy to recognize the site in the future.\u00a0You can add your brand name of website URL in this field to enhance the readability of the project name.<\/p>\n<p style=\"text-align: justify;\"><strong>reCAPTCHA type:<\/strong> Choose any one type of reCAPTCHA you prefer for your site. There are two types available currently i.e., reCAPTCHA v3 and reCAPTCHA v2. We have used reCAPTCHA v2 in the sample project.<\/p>\n<p style=\"text-align: justify;\"><strong>Domains:<\/strong> Here you need to enter your website name for which you will be implementing the reCAPTCHA functionality. It applies to the domains you enter here, and also to its subdomains. For example, a registration for abc.com also registers xyz.abc.com.<\/p>\n<p style=\"text-align: justify;\">Now just check the checkbox of <strong>Accept the reCAPTCHA Terms of Service and click<\/strong> on Submit button.<\/p>\n<p style=\"text-align: justify;\">Now you have the site key and secret key for your website.<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=\"he site key and secret key for your website - 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;\">Step 2: To Implement the Google reCaptcha with PHP the second step comes as Implementing reCAPTHA functionality to your site:<\/h3>\n<ul>\n<li style=\"text-align: justify;\">To add reCAPTCHA in PHP first you need to include the reCAPTCHA JavaScript library in your HTML.\n<pre class=\"brush: actionscript3; gutter: true\">&lt;script src=&#039;https:\/\/www.google.com\/recaptcha\/api.js&#039; async defer &gt;<\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Now add this HTML code where you want to show the reCAPTCHA widget.\n<pre class=\"brush: actionscript3; gutter: true\">&lt;div class=&quot;g-recaptcha&quot; data-sitekey=&quot;site_key&quot;&gt;<\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Replace\u00a0site_key\u00a0with the site key provided by google for your website.<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align: justify;\">It is done now, just refresh your page and you will see the reCAPTCHA widget on your site.<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">Step 3:\u00a0To Validate the user&#8217;s response<\/h3>\n<p style=\"text-align: justify;\">Now, you need to validate the response when a user clicks on the reCAPTCHA widget. The PHP code to verify the user&#8217;s response is given below:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php\r\n \r\n  if(isset($_POST[&#039;g-recaptcha-response&#039;]) &amp;&amp; !empty($_POST[&#039;g-recaptcha-response&#039;]))\r\n  {\r\n        $secret = &#039;your_actual_secret_key&#039;;\r\n        $verifyResponse = file_get_contents(&#039;https:\/\/www.google.com\/recaptcha\/api\/siteverify?secret=&#039;.$secret.&#039;&amp;response=&#039;.$_POST[&#039;g-recaptcha-response&#039;]);\r\n        $responseData = json_decode($verifyResponse);\r\n        if($responseData-&gt;success)\r\n        {\r\n            $succMsg = &#039;Your contact request have submitted successfully.&#039;;\r\n        }\r\n        else\r\n        {\r\n            $errMsg = &#039;Robot verification failed, please try again.&#039;;\r\n        }\r\n   }\r\n?&gt;<\/pre>\n<p style=\"text-align: justify;\">Add your actual secret key in the above code and you are Done.<\/p>\n<p style=\"text-align: justify;\">Get the Sample code <a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/recaptcha_blog.txt\" target=\"_blank\">here<\/a>.<\/p>\n<p style=\"text-align: justify;\"><strong>Recommended Read:<\/strong>\u00a0\u00a0<a href=\"https:\/\/www.knowband.com\/blog\/prestashop-blog\/knowbands-prestashop-google-recaptcha-spammers-and-bots\/\">Two Effective Modules to Keep Away Spammers and Bots from PrestaShop store<\/a><\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Google-ReCaptcha-Module.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-816693 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Google-ReCaptcha-Module.jpeg\" alt=\"Google reCaptcha module available for Prestashop and Opencart by Knowband\" width=\"760\" height=\"395\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Google-ReCaptcha-Module.jpeg 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Google-ReCaptcha-Module-300x156.jpeg 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a>Knowband offers\u00a0Google ReCaptcha Addon for various platforms including <strong><a href=\"https:\/\/www.knowband.com\/prestashop-google-recaptcha\">PrestaShop<\/a>, <\/strong>and<strong> <a href=\"https:\/\/www.knowband.com\/opencart-google-recaptcha\">OpenCart<\/a>.<\/strong> The Google ReCaptcha module is a powerful security tool that guards your website against spam entries while facilitating easy access for actual users.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Knowband-guide-on-google-recaptcha-plugin-that-can-be-used-in-various-forms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824402 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Knowband-guide-on-google-recaptcha-plugin-that-can-be-used-in-various-forms.png\" alt=\"Knowband guide on google recaptcha plugin that can be used in various forms\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Knowband-guide-on-google-recaptcha-plugin-that-can-be-used-in-various-forms.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Knowband-guide-on-google-recaptcha-plugin-that-can-be-used-in-various-forms-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">The\u00a0Google ReCaptcha plugin can be used for sign-in, registration, password reset, well-known contact forms, and other things. Images are shown in the Google ReCaptcha addon as part of their standard validation processes to help identify humans.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">This Google reCaptcha module offers excellent performance and is extremely customizable. From the back end of Knowband modules, the e-merchant may quickly adjust the Google reCaptcha addon.<a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Google.jpeg\" target=\"_blank\"><br \/>\n<\/a><\/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\">Prestashop Google ReCaptcha Addon<\/h3>\n<p class=\"module_content_text\">PrestaShop Google reCaptcha by Knowband enhances your store&#8217;s security by integrating Google reCaptcha, preventing spam and automated bots.<\/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\">SHOP NOW<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p class=\"alignnone\" style=\"text-align: justify;\">\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<\/p>\n<h2 style=\"text-align: justify;\">Final Words:<\/h2>\n<p>Implementing Google reCAPTCHA on websites is essential for security. It helps tell real users from bots, preventing spam and automated attacks. This keeps user data safe and ensures the website runs smoothly. By blocking harmful traffic, reCAPTCHA improves the user experience, making online interactions safer and more reliable.<\/p>\n<p><strong>Recommended read &#8211;<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/prestashop-blog\/empower-prestashop-security-with-knowbands-modules\/\">Empower Your PrestaShop Store Security with Knowband\u2019s Top PrestaShop Modules<\/a><br \/>\nAlong with this, the Google reCaptcha is also compatible with Knowband&#8217;s One Page Checkout, protecting you against transaction fraud. It is the best way to guard your store against transaction fraud. To view the admin demo and front-end demo of the Google reCaptcha Module, visit our <a href=\"https:\/\/www.knowband.com\/search&amp;search=google%20recaptcha\">store<\/a>.<\/p>\n<p><strong>Avoid letting spammers harm your business!<\/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","protected":false},"excerpt":{"rendered":"<p>Nowadays everyone wants to get rid of spam on their website whether it is spam comments or spam messages or spam traffic on your site. To protect your website from spam, one of the best and easiest ways is to use Google reCAPTCHA. In earlier days, people used to put some random number or string [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":824404,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1111],"tags":[20009,34893,20008,20010],"class_list":["post-518543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-google-recaptcha-integration","tag-google-recaptcha-plugin","tag-google-recaptcha-with-php","tag-integrate-google-recaptcha"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Integrate google reCAPTCHA with PHP-Blog<\/title>\n<meta name=\"description\" content=\"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.\" \/>\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\/tips\/integrate-google-recaptcha-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Integrate google reCAPTCHA with PHP-Blog\" \/>\n<meta property=\"og:description\" content=\"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-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:29:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-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\\\/tips\\\/integrate-google-recaptcha-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/\"},\"author\":{\"name\":\"Aparajita Singh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\"},\"headline\":\"How to Integrate Google reCAPTCHA with PHP?\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:29:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/\"},\"wordCount\":739,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png\",\"keywords\":[\"google reCAPTCHA integration\",\"google recaptcha plugin\",\"Google recaptcha with PHP\",\"Integrate google reCAPTCHA\"],\"articleSection\":[\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/\",\"name\":\"How to Integrate google reCAPTCHA with PHP-Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:29:14+00:00\",\"description\":\"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png\",\"width\":760,\"height\":300,\"caption\":\"Integrate google reCAPTCHA with PHP - Knowband\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/integrate-google-recaptcha-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Integrate Google reCAPTCHA with 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\":\"en-US\"},{\"@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\":\"en-US\",\"@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\":\"en-US\",\"@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\\\/author\\\/aparajitasingh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Integrate google reCAPTCHA with PHP-Blog","description":"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.","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\/tips\/integrate-google-recaptcha-php\/","og_locale":"en_US","og_type":"article","og_title":"How to Integrate google reCAPTCHA with PHP-Blog","og_description":"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.","og_url":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-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:29:14+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-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\/tips\/integrate-google-recaptcha-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/"},"author":{"name":"Aparajita Singh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c"},"headline":"How to Integrate Google reCAPTCHA with PHP?","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:29:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/"},"wordCount":739,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png","keywords":["google reCAPTCHA integration","google recaptcha plugin","Google recaptcha with PHP","Integrate google reCAPTCHA"],"articleSection":["Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/","url":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/","name":"How to Integrate google reCAPTCHA with PHP-Blog","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:29:14+00:00","description":"Check this blog for learning the method for integrating Google reCAPTCHA on your website with PHP step by step. Each and every step is described well.","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Integrate-google-reCAPTCHA-with-PHP-Knowband.png","width":760,"height":300,"caption":"Integrate google reCAPTCHA with PHP - Knowband"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tips\/integrate-google-recaptcha-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to Integrate Google reCAPTCHA with 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":"en-US"},{"@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":"en-US","@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":"en-US","@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\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=518543"}],"version-history":[{"count":13,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518543\/revisions"}],"predecessor-version":[{"id":824869,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518543\/revisions\/824869"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media\/824404"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=518543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=518543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=518543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}