Email Obfuscation Using CSS

  Рет қаралды 1,162

CSS Weekly

CSS Weekly

Күн бұрын

Learn how email obfuscation works and why you should obfuscate your emails using CSS.
Email obfuscation by Spencer Mortensen: spencermortensen.com/articles...
Demo: codepen.io/ZoranJambor/pen/qB...
Subscribe to CSS Weekly Newsletter:
💌 css-weekly.com/
Help support my channel
👨‍🎓 Get a course: masteringlinting.com/
🪧 Buy a CSS sticker pack: stickers.css-weekly.com
💖 Support me on Patreon: / cssweekly
Keep up-to-date with CSS Weekly:
🐦 Twitter: / @cssweekly
🎶 TikTok: / cssweekly
🎇 Instagram: / cssweekly
📘 Facebook: / cssweekly
📖 Chapters
00:00 What is email obfuscation
00:47 Email obfuscation techniques
03:17 How CSS email obfuscation works
04:37 Why CSS email obfuscation works
Keep up to date with what I'm up to:
👨‍💼 Blog: zoranjambor.com
💼 LinkedIn: / zoranjambor
- Zoran Jambor
#css

Пікірлер: 33
@tijsvlphotography
@tijsvlphotography 3 ай бұрын
So simple, yet so effective. I'll definitely apply this to my projects.
@CSSWeekly
@CSSWeekly 3 ай бұрын
Thank you so much! I'm thrilled to hear this! 🙂
@warkentien2
@warkentien2 3 ай бұрын
Nice tip! need to do this asap.
@CSSWeekly
@CSSWeekly 3 ай бұрын
Thanks, Philip! I'm glad to hear this! 🙂
@ScriptRaccoon
@ScriptRaccoon 2 ай бұрын
Didn't know this method! So simple yet so effective. :)
@CSSWeekly
@CSSWeekly 2 ай бұрын
Thank you, my friend! 🙂
@D7460N
@D7460N Ай бұрын
Wow! Thank you very much!
@CSSWeekly
@CSSWeekly Ай бұрын
You're very welcome! I'm thrilled you found it helpful! 🙂
@TimMcGrath-sy6rc
@TimMcGrath-sy6rc Ай бұрын
Thanks for sharing Zoran, if your emails are pulled from a directory e.g. should the same principles apply?
@CSSWeekly
@CSSWeekly Ай бұрын
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: kzfaq.info/get/bejne/jc6nqaZyx7iuhnk.html
@ahmad-murery
@ahmad-murery 3 ай бұрын
Nice technique, but now that spam bots know about it, they will start working on it. Thanks Zoran!
@CSSWeekly
@CSSWeekly 3 ай бұрын
That's very possible, Ahmad! 🙂 Perhaps we should look into obfuscating our CSS as well. 🤣
@ahmad-murery
@ahmad-murery 3 ай бұрын
@@CSSWeekly And next obfuscating what obfuscates our css😁 This will never end🤦‍♂
@CSSWeekly
@CSSWeekly 3 ай бұрын
Down the CSS rabbit hole we go... 🤪
@alfredmayer7144
@alfredmayer7144 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
document.querySelector(".email").innerText vs. document.querySelector(".email").textContent
@CSSWeekly
@CSSWeekly 3 ай бұрын
Won’t this grab the entire text, including the false/fake part?
@sotelovisuals
@sotelovisuals 3 ай бұрын
OMG, LOL. So Easy.
@CSSWeekly
@CSSWeekly 3 ай бұрын
It really is! 🙂
@mikaelsiirila
@mikaelsiirila 3 ай бұрын
It's a problem that it's not clickable. It's inconvenient and untrackable.
@CSSWeekly
@CSSWeekly 3 ай бұрын
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 3 ай бұрын
@@CSSWeekly untrackable as a website event (GA4)
@CSSWeekly
@CSSWeekly 3 ай бұрын
Oh, I haven't thought of this. Thanks so much for all your feedback, Mikael!
@JansGuitarJourney
@JansGuitarJourney 3 ай бұрын
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 3 ай бұрын
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. 🤷‍♂️
@dimasmagadan
@dimasmagadan 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
​ @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 3 ай бұрын
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!
@Cgxy2024
@Cgxy2024 3 ай бұрын
Almost 3 mins into the video, still just blabber. Horrible presentation.
@CSSWeekly
@CSSWeekly 3 ай бұрын
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. 🙂
VS Code Tips - Fix Multiline Comments in CSS/HTML
7:28
CSS Weekly
Рет қаралды 1,1 М.
Simplify Your CSS Using :is() and :where() Pseudo-Classes
9:22
CSS Weekly
Рет қаралды 1,5 М.
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 45 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 29 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 2,7 МЛН
CSS Email Obfuscation - Create a Clickable Link
8:14
CSS Weekly
Рет қаралды 969
Single CSS keyframe tricks are magic
52:02
Bad at CSS
Рет қаралды 3,7 М.
Helix 24.03: What's New?
2:36
DevOnDuty
Рет қаралды 5 М.
How to win a argument
9:28
ajaxkmr
Рет қаралды 366 М.
Transition to "height: auto;" & "display: none;" Using Pure CSS
10:14
CSS Stickers!
2:24
CSS Weekly
Рет қаралды 584
Best Programming Fonts (2024)
9:18
CSS Weekly
Рет қаралды 16 М.
UPDATED 2024 SMS & EMAIL SPAMMING GUARANTEED RESULTS
20:00
plotnick1337
Рет қаралды 74
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 443 М.
Samsung Galaxy Unpacked July 2024: Official Replay
1:8:53
Samsung
Рет қаралды 23 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 5 МЛН