<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>recaptcha Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/recaptcha/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/recaptcha/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to Implement Google reCaptcha in bootstrap 4 Form using PHP?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-implement-google-recaptcha-in-bootstrap-4-form-using-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-implement-google-recaptcha-in-bootstrap-4-form-using-php/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 14 Jun 2021 08:45:42 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[bootstrap-4]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[recaptcha]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6492</guid>

					<description><![CDATA[<p>First Go to in this website and create a Account using your gmail account and generate Secret Key and Site [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-implement-google-recaptcha-in-bootstrap-4-form-using-php/">How to Implement Google reCaptcha in bootstrap 4 Form using PHP?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">First Go to in this website and create a Account using your gmail account and generate Secret Key and Site Key.</p>



<p class="wp-block-paragraph"><a href="https://www.google.com/recaptcha/admin/" data-type="URL" data-id="https://www.google.com/recaptcha/admin/" target="_blank" rel="noreferrer noopener">Click Here</a></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="253" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1-1024x253.png" alt="" class="wp-image-6493" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1-1024x253.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1-300x74.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1-768x190.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1-1536x380.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-1.png 1650w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="667" height="968" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a.png" alt="" class="wp-image-6495" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a.png 667w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a-207x300.png 207w" sizes="(max-width: 667px) 100vw, 667px" /></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img decoding="async" width="667" height="968" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a-1.png" alt="" class="wp-image-6497" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a-1.png 667w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-2-a-1-207x300.png 207w" sizes="(max-width: 667px) 100vw, 667px" /></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="642" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-3-1-1024x642.png" alt="" class="wp-image-6498" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-3-1-1024x642.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-3-1-300x188.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-3-1-768x481.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/google-recaptcha-3-1.png 1308w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">After that create a form as below code:-</p>



<script src="https://gist.github.com/ajcotocus/77018515a6b1490097d22edc504e6282.js"></script>



<script src="https://gist.github.com/ajcotocus/85b6cc2f5ff24566f85e2d089548083b.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="762" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Google-reCaptcha-in-bootstrap-4-Form-using-PHP-1024x762.png" alt="" class="wp-image-6501" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Google-reCaptcha-in-bootstrap-4-Form-using-PHP-1024x762.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Google-reCaptcha-in-bootstrap-4-Form-using-PHP-300x223.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Google-reCaptcha-in-bootstrap-4-Form-using-PHP-768x572.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Google-reCaptcha-in-bootstrap-4-Form-using-PHP.png 1083w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>


<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-implement-google-recaptcha-in-bootstrap-4-form-using-php/">How to Implement Google reCaptcha in bootstrap 4 Form using PHP?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-implement-google-recaptcha-in-bootstrap-4-form-using-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Google reCAPTCHA on Register page and login page in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-add-google-recaptcha-on-register-page-and-login-page-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-add-google-recaptcha-on-register-page-and-login-page-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 11 Jun 2021 13:05:00 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[googlecaptcha]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[recaptcha_v2]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6472</guid>

					<description><![CDATA[<p>In this tutorial I&#8217;m going to learn how to add captcha features in on register blade and login page. Nowadays [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-google-recaptcha-on-register-page-and-login-page-in-laravel/">How to Add Google reCAPTCHA on Register page and login page in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1200/1*Eyc5rxYMEq3eVTsfRBxtAA.png" alt="" /></figure>



<p class="wp-block-paragraph" id="9574">In this tutorial I&#8217;m going to learn how to add captcha features in on register blade and login page. Nowadays captcha is very useful because its very important for security reason.</p>



<p class="wp-block-paragraph" id="a53c">There are several library to generate captcha image in Laravel. In this example I&#8217;m going to use Google reCaptcha for generate captcha using anhskohbo/no-captcha package. anhskohbo/no-captcha is very popular package.</p>



<p class="wp-block-paragraph" id="2e44">Please follow some easy steps define below….</p>



<h1 class="wp-block-heading" id="63fb"><strong>First let’s go to install laravel project</strong></h1>



<pre class="wp-block-preformatted">composer create-project laravel/laravel admin-dashboard "5.8.*"</pre>



<p class="wp-block-paragraph" id="63ce">Setup database with your installed laravel 8 project . <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Step 2 — Database Configuration</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>lets go to&nbsp;<strong>.env folder</strong>&nbsp;and put database name and connect to database.</p></blockquote>



<pre class="wp-block-preformatted">DB_CONNECTION=mysql<br>DB_HOST=127.0.0.1<br>DB_PORT=3306<br>DB_DATABASE=admin-dashboard<br>DB_USERNAME=root<br>DB_PASSWORD=</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1043/1*n-gcxt_KSY8S8iOaufe1TA.png" alt="" /></figure>



<h1 class="wp-block-heading" id="2825">Now migrate the table</h1>



<pre class="wp-block-preformatted">php artisan migrate</pre>



<h1 class="wp-block-heading" id="47c1"><em>Now Create Auth</em></h1>



<pre class="wp-block-preformatted">php artisan make:auth</pre>



<p class="wp-block-paragraph" id="9cb2">Next step we have&nbsp;to install anhskohbo/no-captcha package for Google reCaptcha code, after install these package we able to generate captcha code in our register and login page. copy below code and paste in your terminal</p>



<pre class="wp-block-preformatted">composer require anhskohbo/no-captcha</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1042/1*YVezWVByTrCgnsGE2fVU6g.png" alt="" /></figure>



<h2 class="wp-block-heading" id="2da4"><strong>Next add below code in provider path in config/app.php path</strong></h2>



<pre class="wp-block-preformatted">Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1178/1*KWDU5F1oClQsE-UI_JTRjg.png" alt="" /></figure>



<h1 class="wp-block-heading" id="516b">Next Set Google Site Key</h1>



<p class="wp-block-paragraph" id="baa9">Now go to set google secret key and google site key. if you are new user then you have to create from here. go through below link</p>



<p class="wp-block-paragraph" id="2a2b"><a href="https://www.google.com/recaptcha/admin"><strong>Recaptcha Admin</strong></a></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1337/1*aZA0WDuFxeETHarJSKxQQw.png" alt="" /></figure>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1354/1*Oh8MWQG_EZcooyw0X08xYw.png" alt="" /></figure>



<h1 class="wp-block-heading" id="dae4">After submit this form you’ll get site key and secret key</h1>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1359/1*fnyB26xnoIYuKVSteW-0Ow.png" alt="" /></figure>



<h1 class="wp-block-heading" id="4f32">Now go to .env file and add this two variable</h1>



<p class="wp-block-paragraph" id="a311"><strong>.env</strong></p>



<pre class="wp-block-preformatted">#########Google Recaptcha
 NOCAPTCHA_SITEKEY=your site key
 NOCAPTCHA_SECRET=your secret key</pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="750" height="121" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/add-google-captcha.png" alt="" class="wp-image-7040" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/add-google-captcha.png 750w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/add-google-captcha-300x48.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></figure>



<p class="wp-block-paragraph" id="dbfd">Next go to Route/web.php and add Auth::routes();</p>



<pre class="wp-block-preformatted">Auth::routes();</pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Go to Route/web.php</p></blockquote>



<pre class="wp-block-preformatted">&lt;?php<br><br>/*<br>|--------------------------------------------------------------------------<br>| Web Routes<br>|--------------------------------------------------------------------------<br>|<br>| Here is where you can register web routes for your application. These<br>| routes are loaded by the RouteServiceProvider within a group which<br>| contains the "web" middleware group. Now create something great!<br>|<br>*/<br><br>Route::get('/', function () {<br>    return view('welcome');<br>});<br><br>Auth::routes();<br><br>Route::get('/home', 'HomeController@index')-&gt;name('home');</pre>



<p class="wp-block-paragraph" id="3723">Next go to RegisterController.php and add this class</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>RegisterController.php</p></blockquote>



<pre class="wp-block-preformatted">'g-recaptcha-response' =&gt; 'required|captcha',</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1111/1*uNrgv0Mxxus8NAClKb8_1Q.png" alt="" /></figure>



<p class="wp-block-paragraph" id="4635">Next go to App.blade.php and add below script</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>App.blade.php</p></blockquote>



<pre class="wp-block-preformatted">&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;<br>	 {!! NoCaptcha::renderJs() !!}</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1177/1*sFPh-r0wGKtyRdHl9zoGow.png" alt="" /></figure>



<p class="wp-block-paragraph" id="5fb1">And last step of the go to register.blade.php file and add google captcha code before the register button</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>register.blade.php</p></blockquote>



<pre class="wp-block-preformatted">&lt;div class="form-group row {{ $errors-&gt;has('g-recaptcha-response') ? ' has-error' : '' }} "&gt;<br>                            &lt;label for="captcha" class="col-md-4 col-form-label text-md-right"&gt;{{ __('captcha') }}&lt;/label&gt;<br><br>                            &lt;div class="col-md-3" style=""&gt;<br>                                {!! app('captcha')-&gt;display() !!}<br>                                @if ($errors-&gt;has('g-recaptcha-response'))<br>                                    &lt;span class="help-block"&gt;<br>                                        &lt;strong&gt;{{ $errors-&gt;first('g-recaptcha-response') }}&lt;/strong&gt;<br>                                    &lt;/span&gt;<br>                                @endif<br>                            &lt;/div&gt;<br>     &lt;/div&gt;</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1164/1*zYdIPhvQfXB8gS1vNTCZAg.png" alt="" /></figure>



<p class="wp-block-paragraph" id="e023">Now refresh your browser and you can see google captcha code successfully added in your register page.</p>



<pre class="wp-block-preformatted">http://127.0.0.1:8000</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1362/1*1t6Ty-RtcWWnjeFXJ0-SVA.png" alt="" /></figure>



<p class="wp-block-paragraph" id="a249">Successfully Login</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*aSqtUWRuGxqUTKOk6f4qMQ.png" alt="" /></figure>



<p class="wp-block-paragraph" id="9b1b">I hope this tutorial is helpful for you… if you have any question comment now. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-google-recaptcha-on-register-page-and-login-page-in-laravel/">How to Add Google reCAPTCHA on Register page and login page in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-add-google-recaptcha-on-register-page-and-login-page-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
