Email Obfuscation Using CSS

Поділитися
Вставка

КОМЕНТАРІ • 43

  • @tijsvlphotography
    @tijsvlphotography 6 місяців тому +4

    So simple, yet so effective. I'll definitely apply this to my projects.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Thank you so much! I'm thrilled to hear this! 🙂

  • @warkentien2
    @warkentien2 6 місяців тому +3

    Nice tip! need to do this asap.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому +1

      Thanks, Philip! I'm glad to hear this! 🙂

  • @alexgauvin
    @alexgauvin 4 дні тому +1

    Thanks Zoran for this tip. Is it possible, while using this css technique to maintain the mailto: clickable functionality. tag ot any html tag get stripped if put directly in the mailto: prefix.

    • @CSSWeekly
      @CSSWeekly  4 дні тому +1

      You're welcome, Alexandre! Yes, it's possible with a bit of JavaScript. I have a follow-up video where I explain how to make it work: ua-cam.com/video/WhwvCAbRJVE/v-deo.html
      Does this help?

  • @ScriptRaccoon
    @ScriptRaccoon 5 місяців тому +1

    Didn't know this method! So simple yet so effective. :)

    • @CSSWeekly
      @CSSWeekly  5 місяців тому

      Thank you, my friend! 🙂

  • @TimMcGrath-sy6rc
    @TimMcGrath-sy6rc 4 місяці тому +1

    Thanks for sharing Zoran, if your emails are pulled from a directory e.g. should the same principles apply?

    • @CSSWeekly
      @CSSWeekly  4 місяці тому +1

      Thank you, Tim, for watching! Yes, it should work the same. 🙂
      And if you want to make the email clickable, I have a follow-up video on how to set it up here: ua-cam.com/video/WhwvCAbRJVE/v-deo.html

  • @krystalhair9696
    @krystalhair9696 Місяць тому +1

    wooow i never though this way. you are genius. thank you

    • @CSSWeekly
      @CSSWeekly  Місяць тому

      I’m thrilled you think so! Thanks so much for watching and commenting! 🙂

  • @D7460N
    @D7460N 4 місяці тому +1

    Wow! Thank you very much!

    • @CSSWeekly
      @CSSWeekly  4 місяці тому

      You're very welcome! I'm thrilled you found it helpful! 🙂

  • @saysoco
    @saysoco 25 днів тому +1

    how accessible is this method? how do screen readers handle this?

    • @CSSWeekly
      @CSSWeekly  23 дні тому +1

      Thanks for your question! 🙂
      This is accessible; the screen reader will read the email correctly as it understands and parses CSS. I've tested it in VoiceOver.
      The problem with this is that it isn't clickable and therefore usable. I've addressed this in a follow-up video. Here is the link, in case you want to check it out: ua-cam.com/video/WhwvCAbRJVE/v-deo.html

  • @alfredmayer7144
    @alfredmayer7144 6 місяців тому +1

    Can the Googlebot determinate the real adress in this case? In my view modern bots are based on the headless chromium framework. ( =load and render css / => puppeteer)

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      That's a fantastic question, Alfred! 🙏
      I think that any bot that parses HTML and CSS can figure out the real address. Still, it's not as simple as just grabbing it from HTML, as the bot has to figure out that the part of the string is in tags which are hidden in CSS.
      I have't really played around with Puppeteer. Would this be a trivial task?

    • @alfredmayer7144
      @alfredmayer7144 6 місяців тому +3

      document.querySelector(".email").innerText vs. document.querySelector(".email").textContent

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Won’t this grab the entire text, including the false/fake part?

  • @RadiParmen
    @RadiParmen Місяць тому

    wow.. briliant idea

    • @CSSWeekly
      @CSSWeekly  Місяць тому

      Thanks so much, Radi! 🙏

  • @AlixMrt
    @AlixMrt Місяць тому +1

    Great

    • @CSSWeekly
      @CSSWeekly  Місяць тому

      Thanks so much; it means a lot! 🙏

  • @ahmad-murery
    @ahmad-murery 6 місяців тому +1

    Nice technique, but now that spam bots know about it, they will start working on it.
    Thanks Zoran!

    • @CSSWeekly
      @CSSWeekly  6 місяців тому +1

      That's very possible, Ahmad! 🙂
      Perhaps we should look into obfuscating our CSS as well. 🤣

    • @ahmad-murery
      @ahmad-murery 6 місяців тому +1

      @@CSSWeekly And next obfuscating what obfuscates our css😁
      This will never end🤦‍♂

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Down the CSS rabbit hole we go... 🤪

  • @sotelovisuals
    @sotelovisuals 6 місяців тому +1

    OMG, LOL. So Easy.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      It really is! 🙂

  • @mikaelsiirila
    @mikaelsiirila 6 місяців тому +2

    It's a problem that it's not clickable. It's inconvenient and untrackable.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Yes, it would be better if it was clickable, but I don’t mind if I can copy-paste it. 🙂
      What exactly do you mean by untrackable?

    • @mikaelsiirila
      @mikaelsiirila 6 місяців тому +1

      @@CSSWeekly untrackable as a website event (GA4)

    • @CSSWeekly
      @CSSWeekly  6 місяців тому +1

      Oh, I haven't thought of this. Thanks so much for all your feedback, Mikael!

  • @dimasmagadan
    @dimasmagadan 6 місяців тому +2

    in a real world all email links should be clickable. If you have a clickable link, you can't use this "Obfuscation". Video is kinda useless

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Yes, you're right, it's better to have a clickable link with mailto in href. But I personally don't find non-clickable emails that can be copied that useless. 🙂

    • @dimasmagadan
      @dimasmagadan 6 місяців тому +1

      ​ @CSSWeekly ok, could you please give a use case where having a non-clickable email would be beneficial for a user? Keep in ming that we should not forget about accessibility

    • @CSSWeekly
      @CSSWeekly  6 місяців тому +1

      I don't think there are any use cases where the non-clickable link would be more usable than a clickable one.
      I always copy-paste emails (mainly because I'm using multiple email clients), so I don't find non-clickable emails less usable. But I'm surely an outlier here.
      There are some anti-patterns where you want to make it a bit more difficult for users to email you, in which case you'd prefer a non-clickable link. For example, when you want to guide people through a customer support system instead of direct email, as they won't provide all necessary details without additional guidance-but you still are required by law to show the email address.
      Or when the client wants to receive less authentic emails from users, and they insist you make it as difficult as possible to use the email provided-this really happened to me once. 😀
      All that being said, it looks like I messed up and I need to record a follow-up with focus on clickable links. Thanks so much for all your feedback!

  • @JansGuitarJourney
    @JansGuitarJourney 6 місяців тому +2

    This method doesn't work at all. It will hide the mail address from spam bots, but it doesn't allow real users to send an email to you without typing it over by hand. An email address should always be clickable, so users can click on it to write an email.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому

      Yes, it is easier to just click on the link with mailto in href, but you can still copy-paste the email address this way, you don't have to type it manually. I do it quite often and don't find it disruptive. 🤷‍♂️

  • @Cgxy2024
    @Cgxy2024 6 місяців тому

    Almost 3 mins into the video, still just blabber. Horrible presentation.

    • @CSSWeekly
      @CSSWeekly  6 місяців тому +4

      You have timestamps in the video, so you can skip to the part that interests you. 😉
      And there are nicer ways of giving feedback. Something along the lines of "get to the point sooner" would be constructive, and I'd appreciate it. You don't have to be rude and disrespectful. 🙂