{"id":6189,"date":"2022-11-09T05:12:13","date_gmt":"2022-11-09T05:12:13","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=6189"},"modified":"2022-11-10T04:12:35","modified_gmt":"2022-11-10T04:12:35","slug":"recaptcha-v3-with-laravel","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/","title":{"rendered":"reCAPTCHA v3 with Laravel"},"content":{"rendered":"<h2>What is reCaptcha?<\/h2>\n<p><a href=\"https:\/\/developers.google.com\/recaptcha\/\">reCaptcha<\/a> is a free Google tool that helps you defend your website against spam and harmful attacks.<br \/>\nBecause of the increased captcha challenges, the new version, V3, has several enhancements over earlier versions. It gives you a score and analytics that you can use to improve your website.<\/p>\n<p>The previous version of reCaptcha looks like this, but the most recent edition (v3) has changed a lot and provides a better user experience.<\/p>\n<h3>What you&#8217;ll learn<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha.gif\" alt=\"captcha\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha-01.png\" alt=\"captcha-01\" \/><\/p>\n<p><strong>You will have learned the following by the end of this article:<\/strong><\/p>\n<ol>\n<li>How to use reCaptcha v3 in your Laravel application<\/li>\n<li>How to create a reCaptcha admin dashboard in <a href=\"https:\/\/studysection.com\/blog\/history-of-google\/\">Google<\/a>.<\/li>\n<li>How to use reCaptcha scores and statistics to help you make better security decisions for your website.<\/li>\n<\/ol>\n<h3>How to set up Recaptcha in a Laravel Project.<\/h3>\n<p>You can set up reCaptcha on your project by following these simple steps.<\/p>\n<ol>\n<li>Import the open-source package into your project with the composer at the terminal.<br \/>\n<code>composer require biscolab\/laravel-recaptcha<\/code><\/li>\n<li>Publish the recaptcha.php with this command:<br \/>\n<code>php artisan vendor:publish --provider=\"Biscolab\\ReCaptcha\\ReCaptchaServiceProvider<\/code><br \/>\nThis will create a file in the config directory, called <strong><em>config\\recaptcha.php<\/em><\/strong>, where we will add more reCaptcha configurations.<\/li>\n<li>Create a reCaptcha admin account for yourself by going to <a href=\"https:\/\/www.google.com\/recaptcha\/admin\/create\">this page<\/a>.<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha-02.png\" alt=\"captcha-02\" \/><\/li>\n<li>You may make the reCaptcha admin by doing the following:\n<ul>\n<li>Add the name of your site to the label, such as localhost or examplesite.com.<\/li>\n<li>Choose v3 as your reCaptcha type.<\/li>\n<li>Domains should be included in the domain section (localhost or examplesite.com).<\/li>\n<li>In the owner&#8217;s section, including the owner&#8217;s email address.<\/li>\n<li>Check the box that says &#8220;I accept the terms and conditions.&#8221;Just a reminder: the local host is only used to develop locally. As a result, it should be upgraded before transferring to a production environment.<\/li>\n<\/ul>\n<\/li>\n<li>Include the reCaptcha code on your website.<br \/>\nSave your secret keys by pressing the submit button.<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha-03.png\" alt=\"captcha-03\" \/><\/li>\n<li>Add the following to your project&#8217;s.env file:<br \/>\n<code>RECAPTCHA_SITE_KEY=ADD_YOUR_SITE_KEY<br \/>\nRECAPTCHA_SECRET_KEY=ADD_YOUR_SECRET_KEY<br \/>\nRECAPTCHA_SITE=https:\/\/www.google.com\/recaptcha\/admin\/<\/code><br \/>\nIt&#8217;s preferable to erase all cached configurations after making changes to the.env so that the new modifications take effect. In your terminal, type<br \/>\n<code>php artisan optimize:clear.<\/code><\/li>\n<li>Update the version property in the <strong><em>config &gt; recaptcha.php<\/em><\/strong> file to V3. It&#8217;s also worth noting that the API site key and API secret key generated through the admin dashboard will be accessed from the project&#8217;s <strong><em>.env<\/em><\/strong> file.<br \/>\n<code>return [<br \/>\n'version' =&gt; 'v3'<br \/>\n]<\/code><\/li>\n<li>When you&#8217;re in a production setting, you can go to the reCaptcha admin&#8217;s analytics page to see how well your site functions, examine your scores and make decisions.<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha-04.png\" alt=\"captcha-04\" \/><\/li>\n<li>ReCaptcha has been applied, as shown in the image below.<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/captcha-05.png\" alt=\"captcha-05\" \/><\/li>\n<\/ol>\n<p><small><em>People having good command over the French language can get a French certification from StudySection. StudySection offers both beginner level and expert level <a href=\"https:\/\/www.studysection.com\/french-language-and-concepts-advanced\">French Certification Exams<\/a> to test the ability to communicate in the French language.<\/em><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is reCaptcha? reCaptcha is a free Google tool that helps you defend your website against spam and harmful attacks.<\/p>\n","protected":false},"author":1,"featured_media":6190,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[65,814],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>reCAPTCHA v3 with Laravel - StudySection Blog<\/title>\n<meta name=\"description\" content=\"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"reCAPTCHA v3 with Laravel - StudySection Blog\" \/>\n<meta property=\"og:description\" content=\"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-09T05:12:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-10T04:12:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/reCAPTCHA1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\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:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"reCAPTCHA v3 with Laravel\",\"datePublished\":\"2022-11-09T05:12:13+00:00\",\"dateModified\":\"2022-11-10T04:12:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\"},\"wordCount\":452,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"laravel\",\"reCAPTCHA\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\",\"url\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\",\"name\":\"reCAPTCHA v3 with Laravel - StudySection Blog\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2022-11-09T05:12:13+00:00\",\"dateModified\":\"2022-11-10T04:12:35+00:00\",\"description\":\"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"reCAPTCHA v3 with Laravel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"reCAPTCHA v3 with Laravel - StudySection Blog","description":"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.","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:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/","og_locale":"en_US","og_type":"article","og_title":"reCAPTCHA v3 with Laravel - StudySection Blog","og_description":"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.","og_url":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2022-11-09T05:12:13+00:00","article_modified_time":"2022-11-10T04:12:35+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/11\/reCAPTCHA1.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"reCAPTCHA v3 with Laravel","datePublished":"2022-11-09T05:12:13+00:00","dateModified":"2022-11-10T04:12:35+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/"},"wordCount":452,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["laravel","reCAPTCHA"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/","url":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/","name":"reCAPTCHA v3 with Laravel - StudySection Blog","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2022-11-09T05:12:13+00:00","dateModified":"2022-11-10T04:12:35+00:00","description":"reCaptcha is a free Google tool that helps you defend your website against spam and other harmful attacks on web security.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/recaptcha-v3-with-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"reCAPTCHA v3 with Laravel"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":404,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/6189"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=6189"}],"version-history":[{"count":5,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/6189\/revisions"}],"predecessor-version":[{"id":6200,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/6189\/revisions\/6200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/6190"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=6189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=6189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=6189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}