/mailhide2

A replacement of Google's Mailhide using reCAPTCHA v2

Primary LanguageHTML

Mailhide2

A replacement of Google's Mailhide (deprecated due to the shutdown of reCAPTCHA v1) using reCAPTCHA v2.

Usage

  1. Sign up for your own reCAPTCHA key from Google. Both regular and invisible keys are supported.
  2. Replace <site_key> in email.html (email_invisible.html for invisible reCAPTCHA) and <secret_key> in email.php with your own.
  3. Put email.html and email.php under the same directory on your website.
  4. Include a link to email.html in the web page where your masked email address is shown. See index.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.