-
Notifications
You must be signed in to change notification settings - Fork 0
https://jackchilds.tech/posts/reducing_spam_from_mailto_links #11
Comments
hello, and congrats on your first post :) how do i use it in plain js/html, no components, react etc...? thank you and cheers |
It is a couple lines of code in Vanilla JavaScript; might be too short if you are used to React
|
thank you, it works! but, is it bot proof? cause the email is still visible in html: ? |
What I would recommend you do is to take a look at the bundle.js file in the DataProtect repository, you can grab the file from any cdn like jsdelivr, etc. For a full example, take a look at this jsfiddle: https://jsfiddle.net/rkhxbp9c/ As well as this file here: https://github.com/JackChilds/Data-Protect/blob/main/test/demo.html The main difference is that unlike the Next.js version, you will have to manually encode the data first as you can't encode it at build time (or on the server at runtime) in order to hide it from the source code. Hope this helps. |
everything works now |
Why bother to encode the address and tell the crawler you are using trickery. |
@gnawood an interesting idea! |
Reducing spam from mailto links
How I reduce email spam from mailto links and mail forms on my website
https://jackchilds.tech/posts/reducing_spam_from_mailto_links
The text was updated successfully, but these errors were encountered: