Evitar el spam del mailto (el que he utilizado)

8/Mar/2019 516

Spambots aman scrapear páginas para sacar emails para, evidentemente, mandar email spam. En este corto artículo presentaré la técnica que he utilizado y ha sido efectivo, además la encuentro simple entre varias que analicé. Incluye HTML, CSS y opcional (puedes seguir utilizando href=»mailto:nombre@email.com» un poco de JavaScript para hacerle aún más difícil el trabajo al spambot.

Tenemos un clásico enlace con el email:

<a href="mailto:nombre@email.com">nombre@email.com</a>

Tip 1:

Revertimos el texto con el email dentro de la etiqueta <a> para volver a revertirlo con CSS:

<a href="mailto:nombre@email.com" class="reverse">moc.liame@erbmon</a>

.reverse {
  unicode-bidi: bidi-override;
  direction: rtl;
}

Tip 2:

Quitamos el mailto=»» el cual también puede ser scrapeado y con un poco de JavaScript hacemos accesible el poder utilizarlo para abrir un cliente de correo al clic:

<a href="#" class="reverse" data-name="nombre" data-domain="email" data-tld="com" onclick="window.location.href = `mailto:${this.dataset.name}@${this.dataset.domain}.${this.dataset.tld}`; return false;">moc.liame@erbmon</a>

Si no te gusta el onclick=»» en el markup puedes generar una función con el mismo comportamiento.

Ver resultado final:

See the Pen
Avoid email spam trick
by Jorge Epuñan (@juanbrujo)
on CodePen.

Comentarios

  1. Collette Laborde [#]

    We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our whole community will be grateful to you.

  2. KevinchaWn [#]

    cheap chloroquine can you buy chloroquine over the counter – aralen medication

  3. Tiara McCallum [#]

    I appreciate, cause I found exactly what I used to be taking a look for. You have ended my four day long hunt! God Bless you man. Have a nice day. Bye

  4. does tadalafil require a prescription [#]

    Hmm it seems like your blog ate my first comment (it was super
    long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog blogger but I’m still new to the whole
    thing. Do you have any points for first-time blog writers?
    I’d genuinely appreciate it. https://atadalafil.online/

  5. Cortez Spurlock [#]

    It is perfect time to make a few plans for the future and it is time to be happy. I’ve learn this submit and if I may just I wish to counsel you few interesting things or suggestions. Perhaps you could write next articles relating to this article. I desire to read more issues about it!

  6. hydroxychloroquine for sale in canada [#]

    Hmm is anyone else encountering problems with the images on this
    blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any responses would be greatly appreciated. http://hydroxychloroquined.online/

  7. Porter Vanderpool [#]

    Were you aware you may play casino matches on line? . There are many people who are astonished when they know that they can play exciting games like craps, roulette, blackjack, and slots online together with making the most of the full casino encounter at home instead of at a property based casino.However before you play slots online, you should learn a few guidelines concerning the best websites to play with. If you’re curious, be sure to have a look at this informative article regarding playing casino slots online.

  8. KevinchaWn [#]

    chloroquine chloroquine – order chloroquine phosphate

  9. Herman Tobin [#]

    I just could not depart your site prior to suggesting that I really enjoyed the usual info a person provide to your visitors? Is going to be again incessantly to inspect new posts

  10. Vkebrc [#]

    buy prednisone – prednisone 4mg can i buy prednisone online without a prescription

  11. Katherin Jefferies [#]

    Nice read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch since I found it for him smile Thus let me rephrase that: Thank you for lunch!

  12. Marlys Parkhurst [#]

    First off I want to say superb blog! I had a quick question which I’d like to ask if you do not mind. I was curious to know how you center yourself and clear your mind prior to writing. I have had a difficult time clearing my thoughts in getting my thoughts out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any recommendations or tips? Many thanks!

  13. ThomasStory [#]

    http://viagrasv.com/# best over the counter viagra
    viagra over the counter

Deja tu Comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

CSSLab