Free, independent guides since 2010

Security & privacy

Privacy by design for websites

How to build a website that respects privacy from the start: data minimisation, purpose limitation, retention periods, third-party scripts, privacy-friendly tools and an honest privacy statement.

<guide section="Security & privacy" type="article" read="1 min"/>

The GDPR asks for “data protection by design and by default”. For a website that boils down to a simple question at every decision: do we really need this data, and how do we protect it? This website is an example: no cookies, no trackers, fonts and scripts self-hosted.

Core principles

PrincipleOn your website
Data minimisationContact form asks name, email, message – nothing more
Purpose limitationData from a quote request is not used for unrelated marketing
Storage limitationDelete form messages and logs after a set period
SecurityHTTPS, access control, updates
TransparencyClear privacy statement and notices at forms
Privacy by defaultOptional tracking off until the visitor agrees

Third-party scripts and embeds

Every embedded video, map, font service, chat widget or social button can send visitor data to another company. For each one, ask:

  • Is it necessary? Is there a self-hosted or privacy-friendly alternative?
  • Does it set cookies or similar trackers that require consent?
  • Can it be loaded only after a click (like our YouTube facade)?

See self-hosting web fonts and privacy-friendly analytics.

A data inventory

List what personal data your site processes: forms, accounts, orders, newsletters, logs, analytics, embeds. For each: purpose, legal basis, where it is stored, who has access, how long you keep it. This inventory is the basis for your privacy statement and your processing agreements.

Writing the privacy statement

  • Who you are and how to contact you.
  • What data, for which purposes, on which legal basis.
  • Recipients and transfers outside the EU.
  • Retention periods.
  • Visitors’ rights and how to exercise them (see GDPR requests).
  • The right to complain to the data protection authority.

Official guidance: the European Data Protection Board and your national authority.

Frequently asked questions

Is privacy by design required by law?

Yes, the GDPR requires data protection by design and by default (article 25). It applies to how you design processes, forms and systems.

Do I need a privacy statement if I do not collect data?

Almost every website processes some personal data – server logs, contact forms, embedded content. A short, honest statement is always wise.