Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloak e-mail #3886

Closed
dzwiedziu-nkg opened this issue Sep 15, 2017 · 17 comments
Closed

Cloak e-mail #3886

dzwiedziu-nkg opened this issue Sep 15, 2017 · 17 comments

Comments

@dzwiedziu-nkg
Copy link

dzwiedziu-nkg commented Sep 15, 2017

Feature request: cloak email.

Take an email address like example@mail.com. If that was to appear on one of your posts/pages, it could easily be ‘scraped’ or ‘harvested’ automatically to add that email address to a spam list of some sort. Cloaking is all about making that harder to do.

Joomla!, WordPress and other popular CMS provides feature named "cloak email". It cause replace any <a href="mailto:example@mail.com">mailto:example@mail.com</a> to uglified JavaScript which generate original mailto link after webpage was loaded in browser.

Proposal: implement build-in shortcode for it. It must be implemented in Go because uglify function is should not be trivial.

@konart
Copy link

konart commented Sep 18, 2017

Proposal: this should have fallback option (html+css) in case js in turned off (or fails to load for some reason). Something like this: https://stackoverflow.com/questions/21421948/protect-e-mail-address-with-css-only

@shazow
Copy link

shazow commented Sep 26, 2017

Another option is to use an inline base64 data encoded image, if it doesn't have to be linked.

@dzwiedziu-nkg
Copy link
Author

Email address should be readable by people with disables.

@danieka
Copy link
Contributor

danieka commented Oct 3, 2017

I've started working on this feature. I'm done with the html+css variant but it is quite limited, text not selectable, no link and I assume not readable in a screen reader. I think I'll be done with a js variant the next couple of days.

@danieka
Copy link
Contributor

danieka commented Oct 3, 2017

@dzwiedziu-nkg I've submitted a PR for this. Let me know if you think the obfuscation is to simplistic.

danieka pushed a commit to danieka/hugo that referenced this issue Oct 3, 2017
@stale
Copy link

stale bot commented Jan 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jan 24, 2018
@martignoni
Copy link
Contributor

This would still be a useful feature. What about integrating the pull request #3935?

@stale stale bot removed the Stale label Jan 24, 2018
@stale
Copy link

stale bot commented May 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label May 24, 2018
@martignoni
Copy link
Contributor

I still think this would be very useful :-)

@stale stale bot removed the Stale label May 24, 2018
@stale
Copy link

stale bot commented Sep 21, 2018

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Sep 21, 2018
@martignoni
Copy link
Contributor

Still useful IMHO. Suggesting integration of PR #3935.

@stale stale bot removed the Stale label Sep 21, 2018
@stale
Copy link

stale bot commented Jan 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jan 20, 2019
@martignoni
Copy link
Contributor

Still a good way to minimize spam on a Hugo site.

@stale stale bot removed the Stale label Jan 20, 2019
@martignoni
Copy link
Contributor

Just published the cloakemail shortcode as a Hugo component: https://github.com/martignoni/hugo-cloak-email. Credits goes to @danieka for the code.

This can be closed as far as I'm concerned.

@budparr
Copy link

budparr commented Feb 6, 2019

@martignoni Thank you. You inspired me to a theme components section to the Awesome Hugo List: https://github.com/budparr/awesome-hugo

@stale
Copy link

stale bot commented Jun 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jun 6, 2019
@stale stale bot closed this as completed Jul 6, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants