https://www.drupal.org/project/obfuscate_email
Source
git clone command:
git clone --branch 8.x-1.x https://git.drupal.org/project/obfuscate_email.git
cd obfuscate_email_field
GitHub: https://www.github.com/WondrousLLC/obfuscate_email_field
What Is This?
This is a template to override the field output ot the type email. To hide your
emails from bots, render a non readable email on the server and decrypt it via
vanilla JS in the client. No jQuery needed. The
basic idea
consists of three parts:
- hide behind a data-attribute
- substitute the @-sign and dots (.) with /at/, /dot/, then
- shift everything via rot13
- rebuild it via javascript
How To Use it
Have a look into template/field--email.html.twig
to have a fully working
example. This template will be used when the module is enabled. Use the
drupal suggestion system to override this default template. The JS is attached
inside the twig template.
<a data-mail-to="znvy/ng/znvy/qbg/pbz">Email</a> <a data-mail-to="znvy/ng/znvy/qbg/pbz" data-replace-inner="">Email</a> <span data-mail-to="znvy/ng/znvy/qbg/pbz" data-replace-inner="@mail">drop me a line at @mail</span>
will be converted to
<a href="mailto:mail@mail.com">Email</a> <a href="mailto:mail@mail.com">mail@mail.com</a> <span>drop me a line at mail@mail.com</span>
Comments
Comment #2
PA robot CreditAttribution: PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
sourabh.singhal CreditAttribution: sourabh.singhal as a volunteer and at Faichi Solutions Pvt Ltd for Faichi Solutions Pvt Ltd commentedHi tassilogroeper,
There are some issues in your code which was detected on "https://pareview.sh" site. For your reference here is the URL for PA Review Code Result.
Thanks
Sourdrup
Comment #4
tassilogroeper CreditAttribution: tassilogroeper at WONDROUS commentedThank you @sourdrup. updated the recommendations.
Comment #5
damondt CreditAttribution: damondt as a volunteer commentedModule works, great idea. Just a few problems.
Comment #6
tassilogroeper CreditAttribution: tassilogroeper at WONDROUS commentedComment #7
tassilogroeper CreditAttribution: tassilogroeper at WONDROUS commented@damondt Thank you for your review. I updated the docs
1. used
attach_library
in the twig template.2. Yes that would be correct. But this is actually by design, since there should not be an email clearly readable - even by accident. I can not guarantee it, I know.
3. missed that. corrected it.
Comment #8
tassilogroeper CreditAttribution: tassilogroeper at WONDROUS commentedbump
Comment #10
apadernoTo the reviewers: Please change back the priority to Normal after doing a review.
Comment #11
sleitner CreditAttribution: sleitner commentedAutomated Review
pareview details: https://pareview.sh/pareview/https-git.drupal.org-project-obfuscate_emai...
Git errors:
Review of the 8.x-1.x branch (commit c609e16):
This automated report was generated with PAReview.sh, your friendly project application review script.
Manual Review
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #12
sleitner CreditAttribution: sleitner commentedComment #13
apadernoIf you are still working on this application, you should fix all known problems and set the status to Needs review. (See also the project application workflow.)
Please don't change status of this application if you aren't sure you have time to dedicate to this application, or it will be closed again as won't fix.
I am closing this application due to lack of activity.