{"id":5661,"date":"2020-05-18T14:20:40","date_gmt":"2020-05-18T08:50:40","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=5661"},"modified":"2020-05-18T14:20:43","modified_gmt":"2020-05-18T08:50:43","slug":"how-to-add-google-recaptcha-in-php-codeigniter","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/","title":{"rendered":"How to add Google ReCAPTCHA in PHP Codeigniter"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">How to add Google ReCAPTCHA in PHP Codeigniter<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Date: 09-05-2020<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Introduction:<\/h4>\n\n\n\n<p><strong>reCAPTCHA<\/strong>&nbsp;is a free service from&nbsp;Google that helps protect websites from spam and abuse. It is verifying a user is a human or robot. Google reCAPTCHA show some images and give hint&nbsp;in text and ask users to select appropriate images on the subject. If users select perfectly then google verified that the user is not a robot.<\/p>\n\n\n\n<p>If you are creating a login form for your project, then it can change to hack by someone. So at that moment if you use google captcha then it provides the best security for prevent.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"164\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif\" alt=\"\" class=\"wp-image-5665\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 1: <\/h4>\n\n\n\n<p>We need to create reCAPTCHA for the required domain and generate a key pair like the site and secret key. We can use the following google link to create reCAPTCHA.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.google.com\/recaptcha\/intro\/v3.html\">https:\/\/www.google.com\/recaptcha\/intro\/v3.html<\/a><\/p>\n\n\n\n<p>Click on this link then we will get the following page. Click on the <strong>Admin console<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/1-1-1024x619.png\" alt=\"\" class=\"wp-image-5668\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-1024x619.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-300x181.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-768x464.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-1536x928.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-2048x1237.png 2048w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/1-1-497x300.png 497w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 2:<\/h4>\n\n\n\n<p>Once login completed by using Gmail login credentials, <\/p>\n\n\n\n<p>Then we will have to register the site on which you are going to implement reCAPTCHA. We will get the following page.<br><strong>Note:<\/strong> If you already register some domain name in the admin console then the Click Plus symbol on the Admin Console page opened for the setup form. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"1024\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/2-1-676x1024.png\" alt=\"\" class=\"wp-image-5669\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/2-1-676x1024.png 676w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/2-1-198x300.png 198w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/2-1-768x1163.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/2-1-1014x1536.png 1014w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/2-1.png 1086w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 3:<\/h4>\n\n\n\n<p>We have to fill the following details in above page.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Label<\/strong>&#8211; Enter your domain name for which need to implement reCAPTCHA<\/li><li><strong>reCAPTCHA type<\/strong>&#8211; Choose your preferred reCAPTCHA type.<\/li><li><strong>Domains<\/strong>&#8211; Give the domain name to register.<\/li><li><strong>Owners-<\/strong> Your Gmail id will be displayed by default.<\/li><li><strong>Accept the reCAPTCHA Terms of Service<\/strong>&#8211; Click on the checkbox<\/li><li><strong>Send alerts to owners<\/strong>&#8211; Click on the checkbox.<\/li><\/ul>\n\n\n\n<p>Then, click on the <strong>Submit <\/strong>button.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 4:<\/h4>\n\n\n\n<p>After submitting, your website will be registered and click on the settings option then we will get the site and secret key by click on COPY SITE KEY &amp; COPY SECRET KEY from the following page. Then click on the <strong>Save<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"1024\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/3-637x1024.png\" alt=\"\" class=\"wp-image-5681\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/3-637x1024.png 637w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/3-187x300.png 187w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/3-768x1234.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/05\/3.png 877w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 5: To add site key on the PHP file.<\/h4>\n\n\n\n<p>Connect to your server via SSH as the root user using the following command:<br><em><strong>ssh root@your server IP -p port number<\/strong><\/em><\/p>\n\n\n\n<p>We can open login.php by using the following command:<br><strong>vi \/home\/domain name\/application\/views\/login_view.php<\/strong><\/p>\n\n\n\n<p>We will add the following code in the required field on the login.php file.<br><br><strong>&lt;div class=&#8221;col-md-6&#8243;&gt;<br>&lt;!&#8211; [PUT THE CAPTCHA WHERE YOU WANT IT] &#8211;&gt;<br>&lt;div class=&#8221;g-recaptcha&#8221; data-sitekey=\u201center site key\u201d&gt;&lt;\/div&gt;<br>&lt;div style=&#8221;margin-top: 5px;color: red; &#8220;&gt;&lt;?php echo<br>form_error(&#8216;g-recaptcha-response&#8217;); ?&gt;&lt;\/div&gt;<br>&lt;\/div&gt;<\/strong><br><br><strong>Note:<\/strong> enter site key &#8211; copy and paste the key from google reCAPTCHA. <br><br>Add the following code in the beginning or end on the login.php file.<br><br><strong>&lt;!&#8211; [PASTE THE PROVIDED API] &#8211;&gt;<br>&lt;script src=&#8217;https:\/\/www.google.com\/recaptcha\/api.js&#8217;&gt;&lt;\/script&gt;<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step &#8211; 6: To add secret key on the PHP file.<\/h4>\n\n\n\n<p>We need to start validating in the controller after form validation.<br><br>We can open login.php by using the following command:<br><strong>vi \/home\/domain name\/application\/controllers\/login.php<\/strong><br><br>Now paste&nbsp;the&nbsp;code just&nbsp;after&nbsp;form&nbsp;validation&nbsp;of&nbsp;the following code.<br><br><strong>&nbsp;\/* [VERIFY CAPTCHA FIRST] *\/<br>$secret = \u2018Enter secret key\u2019; \/\/ CHANGE THIS TO YOUR OWN!<br>$url = &#8220;https:\/\/www.google.com\/recaptcha\/api\/siteverify?<br>secret=$secret&amp;response=&#8221;.$_POST[&#8216;g-recaptcha-response&#8217;];<br>$verify = json_decode(get_web_page($url));<br>if($verify-&gt;success)<\/strong><br><br><strong>Note:<\/strong> Enter secret key &#8211; copy and paste the key from google reCAPTCHA.<\/p>\n\n\n\n<p>Google&nbsp;reCAPTCHA&nbsp;is&nbsp;now ready&nbsp;to use. You can use reCAPTCHA on the website login page. <\/p>\n\n\n\n<p>Thank you!<\/p>\n\n\n\n<p><br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add Google ReCAPTCHA in PHP Codeigniter Date: 09-05-2020 Introduction: reCAPTCHA&nbsp;is a free service from&nbsp;Google that helps protect websites from spam and abuse. It is verifying a user is a human or robot. Google reCAPTCHA show some images and give hint&nbsp;in text and ask users to select appropriate images&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">How to add Google ReCAPTCHA in PHP Codeigniter<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[340,221],"tags":[341,273,770],"class_list":{"0":"post-5661","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-codeigniter","7":"category-php","8":"tag-codeigniter","9":"tag-php","10":"tag-recaptcha","11":"h-entry","13":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/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:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"How to add Google ReCAPTCHA in PHP Codeigniter Date: 09-05-2020 Introduction: reCAPTCHA&nbsp;is a free service from&nbsp;Google that helps protect websites from spam and abuse. It is verifying a user is a human or robot. Google reCAPTCHA show some images and give hint&nbsp;in text and ask users to select appropriate images&hellip; Continue Reading How to add Google ReCAPTCHA in PHP Codeigniter\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-18T08:50:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-18T08:50:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"How to add Google ReCAPTCHA in PHP Codeigniter\",\"datePublished\":\"2020-05-18T08:50:40+00:00\",\"dateModified\":\"2020-05-18T08:50:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/\"},\"wordCount\":640,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/newCaptchaAnchor.gif\",\"keywords\":[\"codeigniter\",\"php\",\"reCaptcha\"],\"articleSection\":[\"Codeigniter\",\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/newCaptchaAnchor.gif\",\"datePublished\":\"2020-05-18T08:50:40+00:00\",\"dateModified\":\"2020-05-18T08:50:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/newCaptchaAnchor.gif\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/newCaptchaAnchor.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-add-google-recaptcha-in-php-codeigniter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add Google ReCAPTCHA in PHP Codeigniter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"How to add Google ReCAPTCHA in PHP Codeigniter Date: 09-05-2020 Introduction: reCAPTCHA&nbsp;is a free service from&nbsp;Google that helps protect websites from spam and abuse. It is verifying a user is a human or robot. Google reCAPTCHA show some images and give hint&nbsp;in text and ask users to select appropriate images&hellip; Continue Reading How to add Google ReCAPTCHA in PHP Codeigniter","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2020-05-18T08:50:40+00:00","article_modified_time":"2020-05-18T08:50:43+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"How to add Google ReCAPTCHA in PHP Codeigniter","datePublished":"2020-05-18T08:50:40+00:00","dateModified":"2020-05-18T08:50:43+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/"},"wordCount":640,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif","keywords":["codeigniter","php","reCaptcha"],"articleSection":["Codeigniter","PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif","datePublished":"2020-05-18T08:50:40+00:00","dateModified":"2020-05-18T08:50:43+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/05\/newCaptchaAnchor.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-google-recaptcha-in-php-codeigniter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add Google ReCAPTCHA in PHP Codeigniter"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1tj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5661"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5661\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}