<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Geordy James</title>
    <description>The latest articles on DEV Community by Geordy James (@geordyjames).</description>
    <link>https://dev.to/geordyjames</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F8676%2F25305642.jpeg</url>
      <title>DEV Community: Geordy James</title>
      <link>https://dev.to/geordyjames</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/geordyjames"/>
    <language>en</language>
    <item>
      <title>Google Can Now Separate Humans from Bots Using Invisible Powers of AI</title>
      <dc:creator>Geordy James</dc:creator>
      <pubDate>Tue, 14 Mar 2017 05:01:37 +0000</pubDate>
      <link>https://dev.to/geordyjames/google-can-now-separate-humans-from-bots-using-invisible-powers-of-ai</link>
      <guid>https://dev.to/geordyjames/google-can-now-separate-humans-from-bots-using-invisible-powers-of-ai</guid>
      <description>

&lt;p&gt;No more clicking "I'm not a robot" checkbox, google step ahead and officially released it's most secure and innovative Invisible reCAPTCHA service ever.Google used their advanced machine learning algorithms and advanced risk analysis to make it invisible.Human users will be let through without seeing the "I'm not a robot" checkbox, while suspicious ones and bots still have to solve the challenges.The new google Invisible reCAPTCHA help to protect your site from bot attacks and spams. &lt;/p&gt;

&lt;p&gt;The official video of google Invisible reCAPTCHA  is given below&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Now let's look at how to easily implement new google Invisible reCAPTCHA in our website.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Now before we start coding we need to register our site and get a client key and secret key from google. You can register your site for free from &lt;a href="https://www.google.com/recaptcha/admin"&gt;Google&lt;/a&gt;. The registration process is fairly simple and straight forward so I am skipping it.&lt;/p&gt;

&lt;p&gt;The client side integration is fairly easy &lt;/p&gt;

&lt;p&gt;Paste this snippet before the closing  tag on your HTML template:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src='https://www.google.com/recaptcha/api.js'&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;then Paste this snippet at the end of the &lt;/p&gt; to create a button protected by the Invisible reCAPTCHA. You will need to create a callback function to handle the result.
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button
class="g-recaptcha"
data-sitekey="6Lc8xBgUAAACBD8a6QoJsCLdevUFF1LEeJ0iN5_m"
data-callback="YourOnSubmitFn"&amp;gt;
Submit
&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The server-side integration is a little tricky&lt;/p&gt;

&lt;p&gt;you need to verify the client side response by sending it to &lt;a href="https://www.google.com/recaptcha/api/siteverify"&gt;https://www.google.com/recaptcha/api/siteverify&lt;/a&gt; and google will verify it and will return a JSON response.&lt;/p&gt;

&lt;p&gt;It is tricky so what I do is call a function for HTTP call in above URL and JSON decode above response from google like below&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt; $getResponse = $this-&amp;gt;getHTTP(
    array(
        'secret' =&amp;gt; $this-&amp;gt;config['secret-key'],
        'remoteip' =&amp;gt; $remoteIp,
        'response' =&amp;gt; $recaptcha,
    )
 );

// get reCAPTCHA server response
$responses = json_decode($getResponse, true);


private function getHTTP($data)
{

$url =    'https://www.google.com/recaptcha/api/siteverify?'.http_build_query($data);
 $response = file_get_contents($url);

return $response;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can download the complete code and library by visiting &lt;a href="https://shareurcodes.com/blog/google%20invisible%20recaptcha%20integration%20with%20php"&gt;this link&lt;/a&gt;.&lt;/p&gt;


</description>
      <category>webdev</category>
      <category>programming</category>
      <category>php</category>
    </item>
    <item>
      <title>Prevent Bot attack in your site by using new Google reCAPTCHA </title>
      <dc:creator>Geordy James</dc:creator>
      <pubDate>Sun, 05 Mar 2017 04:47:17 +0000</pubDate>
      <link>https://dev.to/geordyjames/prevent-bot-attack-in-your-site-by-using-new-google-recaptcha</link>
      <guid>https://dev.to/geordyjames/prevent-bot-attack-in-your-site-by-using-new-google-recaptcha</guid>
      <description>

&lt;p&gt;Nowadays there is an extensive increase in bot attacks and spams faced by our websites. But a web developer can easily prevent them by using reCAPTCHA in their form submission and login systems. One of the best and easy to integrate reCAPTCHA was by using google reCAPTCHA, a free service provided by google. The main advance of google reCAPTCHA is its look and feel and easy to use for visitors. &lt;/p&gt;

&lt;p&gt;Now before we start coding we need to register our site and get a client key and secret key from google. You can register your site for free from &lt;a href="https://www.google.com/recaptcha/admin"&gt;Google&lt;/a&gt;. The registration process is fairly simple and straight forward so I am skipping it.&lt;/p&gt;

&lt;p&gt;The client side integration is fairly easy &lt;br&gt;
Paste this snippet before the closing  tag on your HTML template:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src='https://www.google.com/recaptcha/api.js'&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then Paste this snippet at the end of the &lt;/p&gt; where you want the reCAPTCHA widget to appear:
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="g-recaptcha" data-sitekey="6LdV2ygTAAAAACZ2Js-_G6uLp99TEn0MUNpDPS3c"&amp;gt;&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The server-side integration is a little tricky&lt;/p&gt;

&lt;p&gt;you need to verify the client side response by sending it to &lt;a href="https://www.google.com/recaptcha/api/siteverify"&gt;https://www.google.com/recaptcha/api/siteverify&lt;/a&gt; and google will verify it and will return a JSON response.&lt;/p&gt;

&lt;p&gt;It is tricky so what I do is call a function for HTTP call in above URL and JSON decode above response from google like below&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt; $getResponse = $this-&amp;gt;getHTTP(
        array(
            'secret' =&amp;gt; $this-&amp;gt;config['secret-key'],
            'remoteip' =&amp;gt; $remoteIp,
            'response' =&amp;gt; $recaptcha,
        )
    );

 // get reCAPTCHA server response
 $responses = json_decode($getResponse, true);


 private function getHTTP($data)
 {

 $url = 'https://www.google.com/recaptcha/api/siteverify?'.http_build_query($data);
 $response = file_get_contents($url);

 return $response;
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can download the complete code and library by visiting &lt;a href="https://shareurcodes.com/blog/new%20google%20recaptcha%20integration%20with%20php"&gt;this link&lt;/a&gt;.&lt;/p&gt;


</description>
      <category>webdev</category>
      <category>programming</category>
      <category>php</category>
    </item>
    <item>
      <title>Hi, I'm Geordy James</title>
      <dc:creator>Geordy James</dc:creator>
      <pubDate>Sat, 04 Mar 2017 08:38:09 +0000</pubDate>
      <link>https://dev.to/geordyjames/hi-im-geordy-james</link>
      <guid>https://dev.to/geordyjames/hi-im-geordy-james</guid>
      <description>&lt;p&gt;I have been coding for 2 years.&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/geordyjames" rel="noopener noreferrer"&gt;geordyjames&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I live in India.&lt;/p&gt;

&lt;p&gt;I work as an independent web developer.&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: Codeigniter and Laravel.&lt;/p&gt;

&lt;p&gt;I am currently learning more about Vue.js.&lt;/p&gt;

&lt;p&gt;I also created a blog in Laravel to share my codes and knowledge with young developers - &lt;a href="http://shareurcodes.com/" rel="noopener noreferrer"&gt;http://shareurcodes.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My biggest passion is coding and developing new projects.&lt;/p&gt;

&lt;p&gt;I love helping young programmers and I am an active user of StackOverflow. &lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
