Smashing Newsletter #296: Security and Privacy

With CAPTCHA, web security, spam prevention, security, vulnerabilities, tracking blocker and guide to better design.Issue #296 Tue, April 13, 2021 View in the browser 💨

Smashing Newsletter

G’day,

When it comes to our rights and our privacy, we’ve got used to lengthy documents, often poorly formatted, impossible to read and written in a perfect legalese. At the same time, most of us have experienced spambot attacks in our forms and perhaps one or two vulnerability exploits.

In this newsletter issue, we look into privacy and security, with useful little tools and resources to help you prevent spam, get better at web security, make sense of licenses and terms and conditions, and block one or two unfriendly trackers.

A quick note from the Smashing universe: we have ongoing online workshops on front-end & UX, with a few new workshops announced, and we have a free online meet-up coming April 27 — we’d be honored and humbled to welcome you there.

Stay safe and secure, everyone!
— Vitaly (@smashingmag)


1. Spam Prevention Strategy

When it comes to preventing spambots for polluting your forms with spam comments and requests, usually it’s common to think about invisible CAPTCHA first. Luckily, we don’t have to fill in CAPTCHAs much any longer — and it has become remarkably difficult — yet instead we’ve been trained to identify crosswalks and fire hydrants. Can we do better than that?

Spam Prevention Strategy

It’s not a big revelation that CAPTCHAs have significant usability and accessibility issues (PDF). So when we look into spam prevention, we’ve come up with a simple strategy — and with it, CAPTCHA isn’t going to be the first choice. We suggest to use Akismet and similar tools to block known spam IPs.

If it doesn’t work, we go for a random plain “human” question (what color is the sun?). As a next level, we use a honeypot technique to lure bots into input. Then, we use a keyboard-accessible slider to verify or time traps (vf)


2. Making Sense of Licenses

So what’s the difference between MIT License and BSD license again? It can be difficult to navigate through the restrictions of licensing for software. To avoid legal trouble, you can check tl;drLegal, a repository of all software licenses explained in Plain English.

Making Sense of Licenses

The site summarizes popular open source and software licenses at a glance, giving short and concise information on what can be done, what cannot, and what’s necessary to keep in mind. You can look for specific terms and conditions of a software, but also filter by personal use and commercial use, along with a few other filters. The summaries are peer-reviewed, the most visible licenses even checked by a lawyer. A real timesaver. (vf)


3. Boosting Web Security

Getting web security right isn’t easy. It’s enough to have just one loophole or vulnerability for adversaries to use to find their way around your application. Feross Aboukhadijeh has been running a freely available Stanford Web Security Video Course, which includes HTTP(S), cookies, sessions, same origin policy, cross-site scripting (XSS), cross-site script inlcusion, Webauthn and many other related topics.

Boosting Web Security

And if you are building a React application, take a look at 10 React security best practices, a cheatsheet with common things to keep in mind to avoid issues down the road: XSS protection with data binding, rendering HTML, direct DOM access, JSON state and a few others. (vf)


4. Upcoming Front-End & UX Workshops

Building and designing good experiences isn’t easy, but we can learn to do so together. For examples, with our friendly online workshops. The same experience and access to experts as in an in-person workshop, without needing to leave your desk. On design systems, interface design, web performance and CSS.

Smashing Online Events

We do our best to provide a truly smashing experience with wonderful folks from all over the world. There are still some early-birds left, with a lil’ friendly discount. Perhaps you’d like to join us and recommend to others — thank you! (vf)


5. Terms of Service Didn’t Read

Terms and conditions of a service aren’t usually the evening reading fun material, but before using a service, it’s a good idea to check what will actually happen to your data once you perhaps decide to switch to another service, or use another tool. Terms of Service Didn’t Read tracks the ToS-legalese and converts them to plain English.

Terms of Service Didn’t Read

The project is run by a user rights initiative to rate and label website terms and privacy policies. For most popular services, tools and sites, the site provides a detailed description of what is allowed, and what isn’t, along with key highlights, a privacy grade and the official documents from the service. Not all services are rated, but you can search for the one in question and at least get an overview of what it provides. (vf)


6. Open Source Cookie Consents

In times of GDPR and CCPA, it has become common to rely on third-parties to provide options for EU customers to opt in or opt out from tracking. However, like with any other third-party script, their performance can have a quite devastating impact on the entire performance effort.

Open Source Cookie Consents

As Boris Schapira noted, we might want to study a few different web performance profiles. Normally cookie consent prompts shouldn’t have an impact on CLS, but sometimes they do, so if you aren’t quite happy with your current solution, consider using free and open source options Osano, cookieBAR or cookie-consent-box.

All tools are heavily customizable for your needs, but it’s critical to make sure that the customer’s choices are obvious. You’ll also need to look into listing all used cookies on your privacy policy page, and allow customers to opt-out from them if they wish. (vf)


7. Blocking Tracking In Email

Most marketing emails include trackers in HTML email, so they can track how often, when and where customers open emails. MailTrackerBlocker acts pretty much as an ad-blocker for browsers, but works with email clients.

Blocking Tracking In Email

The tool labels who is tracking customers and removes tracking pixels before they can be displayed, so you can still load all remote content and keep you private. Currently only available for Apple Mail on macOS 10.11 – 11.x. (vf)


8. Better Design Guide

With tracking all around us, it’s important to see how as designers and developers we can produce better products that give users control of their privacy and their data while meeting business goals and business requirements. Ethical Design Guide includes a huge overview of useful resources, books, tools and courses, all filtered by topic of interest, to design better.

Better Design Guide

We’ve also published The Ethical Design Handbook, packed with practical techniques to make honest interfaces work for digital products. Finally, there’s a growing list of tools and resources that are bound to help you keep an eye on inclusive design: A11y Resources. (vf)


9. New On Smashing Job Board


10. Recent Articles


That’s All, Folks!

Wow, you’ve made it this far! Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time!


This newsletter issue was written and edited by Cosima Mielke (cm), Vitaly Friedman (vf) and Iris Lješnjanin (il).


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook

unsubscribe update preferences view in your browser


Older messages

Smashing Newsletter #295: Boosting Your Coding Workspace

Tuesday, April 6, 2021

With tools for a better command line, text editor, finding git commands and pets for your VS Code. Issue #295 • Tue, April 6, 2021 • View in the browser 💨 Smashing Newsletter Ahoj Smashing Friends,

Smashing Newsletter #294: SVG Generators and Tools

Wednesday, March 31, 2021

With SVG filters, cropping tools, SVG assets manager, tet warping generators, animation and SVG transformation. Issue #294 • Tue, March 30, 2021 • View in the browser 💨 Smashing Newsletter Ahoy

Smashing Newsletter #293: Jamstack, Headless, Static Site Generators

Tuesday, March 23, 2021

With static site generators, headless CMS, the state of Jamstack and how to choose if headless options are a good fit for your projects. Issue #293 • Tue, March 23, 2021 • View in the browser 💨

Smashing Newsletter #292: JavaScript, Bundlers, Frameworks

Tuesday, March 16, 2021

With vanilla JavaScript snippets, bundlers, on migrating JavaScript to TypeScript, and how to choose a JavaScript framework. Issue #292 • Tue, March 16, 2021 • View in the browser Smashing Newsletter G

New Live Workshops On Front-End & Design

Thursday, March 4, 2021

Live workshops on web performance, design systems, CSS with Lea Verou, Harry Roberts, Stephanie Eckles and Dan Mall. From front-end to design, to help your boost your skills online. Live workshops on

You Might Also Like

🐺If they can get press, so can you.

Friday, January 10, 2025

Calling all product businesses and designers. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

🐺Are you overwhelmed when it comes to PR?

Friday, January 10, 2025

do this. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

#489: Web Performance

Tuesday, January 7, 2025

Instant navigation, Web Almanac 2024, INP debugging, font-face fallbacks and compression dictionaries. Issue #489 • Jan 7, 2025 • View in the browser Smashing Newsletter Hello Smashing Friends, Web

The Beautiful House That Made Mayer Rus Anxious—At First

Tuesday, January 7, 2025

View in your browser | Update your preferences ADPro Concrete Box Supreme I confess, I was a bit intimidated by the prospect of writing about the work of architect Tadao Ando for the first time in my

New Updates and a Sneak Peek into 2025

Tuesday, January 7, 2025

Both our email builder and website builder are getting significant upgrades to enhance your experience.͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌

🐺Get ready to get press in 2025!

Tuesday, January 7, 2025

Since you asked, we extended the sale! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Accessibility Weekly #430: FTC Orders AccessiBe to Pay $1M

Monday, January 6, 2025

January 6, 2025 • Issue #430 View this issue online or browse the full issue archive. Featured: FTC orders AI accessibility startup AccessiBe to pay $1M for misleading advertising "The US Federal

Getting ready for 2025

Sunday, January 5, 2025

Issue 227: Key focuses in the new year ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Want to Scale Your Firm in 2025? Start Here

Thursday, January 2, 2025

View in your browser | Update your preferences ADPro Build Your Best Team Yet A new calendar year presents an opportunity to wipe the slate clean, and your approach, whether slapdash or carefully

Our Must-Reads of 2024

Tuesday, December 31, 2024

View in your browser | Update your preferences ADPro Year in Review Well, we made it. It's the last day of 2024, so today, we're taking a walk down memory lane to bring you some of our