Spamming is big issue for website owner because it takes lots of time to remove every spam comment and emails. We try to do any possible way to stop this there are many ways to do but most successful way is to give challenge user how post comment or contact you, That will decide who is real and who is automatic bot robot.
Google recently launches it’s NO reCAPTCHA which is different from old recaptcha where user have to enter different type of words now you can just click on I’m Not a Robot and Google NO reCaptcha will decide based on IP and their system.
You need to follow there below steps to successful use of this.
Register You Website for Google NO reCAPTCHA
To register you website open website here then click on Get reCaptcha you will get a form like below and fill the details and click on Register button
Integrate Google no reCAPTCHA Get Site Key and Secrete Key
After register your website you will get a Site Key and Secrete Key these are unique for every website you need to generate for you like shown in below image.
Adding Google No reCAPTCHA scripts and code into website
No you just need to add script into you website header or footer wherever you prefer and save it also the second line start from DIV paste within <form> tag where you want to show the Google no reCAPTCHA challange shown in picture below
Google provide you a script link code to put into <head> tag you can also choose a language you prefer like en for English or without language as well.
<script src='https://www.google.com/recaptcha/api.js'></script>
Code with language preference:
<script src='https://www.google.com/recaptcha/api.js?hl=en'></script>
Here is form code that will show where you need put copy below code and save it into index.php or anyname you want to give it:
<head> <title>Form for website with No reCAPTCHA by BAZTRO.com</title> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <body> <div id="page-wrap"> <p>By <a href="http://www.baztro.com">BAZTRO.com</a></p> <div id="contact-area"> <form method="post"> <table> <tr> <td class="left"><label for="Name">Name:</label></td> <td><input type="text" name="Name" /></td> </tr> <tr> <td class="left"><label for="City">City:</label></td> <td><input type="text" name="City" /></td> </tr> <tr> <td class="left"><label for="Email">Email:</label></td> <td><input type="text" name="Email" /></td> </tr> <tr> <td class="left"><label for="Message">Message:</label></td> <td><textarea name="Message" rows="20" cols="20"></textarea></td> </tr> </table> <div class="g-recaptcha" data-sitekey="6LffiRATAAAAAK8vzuxxxxxxFkbo7dax4dYg_uEP"></div> <input type="submit" name="submit" value="Submit" class="submit-button" /> </form> </div> </div> </body> </html>
This is how you can add these code some times Google not sure that you are human then a second attempt will appear which show a code to enter so don’t worry about span any more.