Mailhide2
A replacement of Google's Mailhide (deprecated due to the shutdown of reCAPTCHA v1) using reCAPTCHA v2.
Usage
- Sign up for your own reCAPTCHA key from Google. Both regular and invisible keys are supported.
- Replace
<site_key>
inemail.html
(email_invisible.html
for invisible reCAPTCHA) and<secret_key>
inemail.php
with your own. - Put
email.html
andemail.php
under the same directory on your website. - Include a link to
email.html
in the web page where your masked email address is shown. Seeindex.html
for an example.
Notes
The code uses www.recaptcha.net
instead of www.google.com
to enable access from places where Google is blocked. See the FAQ of reCAPTCHA for details on global access.
Acknowledgments
The code was inspired by this example on Codeforgeek.