black friday 2026 label for the hellobar

Get ready for Black Friday! See offers →

Website Security9 min. read

What is website compliance?

Last updated: Nov 19, 2026

Website compliance means your website follows the laws that apply to it. For a UK website, that's mainly the data protection rules of UK GDPR and the Data Protection Act 2018 and the rules on cookies and marketing emails. If you sell online, the consumer rules for orders and returns apply as well. These rules reach every part of your site that collects personal details or takes orders, from a contact form to your checkout.

Which laws apply to a UK website?

Three sets of rules can apply to a UK website. Which of them apply to yours depends on whether it collects personal details, uses cookies, sends marketing emails or takes orders.

  • UK GDPR and the Data Protection Act 2018: together, these two laws cover any personal data you collect, from a name in a contact form to a customer's delivery address.
  • The Privacy and Electronic Communications Regulations (PECR): the rules for the cookies your site uses and the marketing emails you send.
  • The Consumer Contracts Regulations 2013: the consumer rules for distance selling, such as online orders. They cover what you have to tell customers before they order, and their right to cancel afterwards.

If you sell to customers in the EU, the EU GDPR can apply to you too. It covers businesses outside the EU that offer goods or services to people there.

Why is compliance important for your website?

Website legal compliance matters because breaking these rules can cost you money. If you misuse personal data, you can be fined or made to pay compensation. Under UK data protection law, the highest penalty for a business is £17.5 million or 4% of its total annual worldwide turnover for the previous financial year, whichever is higher. Knowing what the rules ask is the surest way to avoid fines.

If your online shop doesn't give customers the information the selling rules require, you can be made to deliver as agreed, pay compensation or face an unlimited fine. Without information on their right to cancel, customers get up to a year to change their mind.

Clear policies also show visitors that they can trust you with their details and their money. Make your privacy policy easy to find, and let visitors choose their cookies when they arrive, before any cookies that need consent are set.

What does your website need to be compliant?

If your website collects personal data, it needs a privacy policy. Whether it also needs cookie consent depends on which cookies it sets. If you send marketing emails or sell online, you also need permission for those emails, terms and conditions and a returns policy.

A privacy policy

If your website collects personal data, you need to tell people what you do with it, and a privacy policy is where you do that. Even a simple contact form means you need one, because it collects a name and an email address.

When you collect someone's personal data, UK GDPR asks you to tell them, among other things:

  • your business name and how to contact you
  • what data you collect, why you collect it and on what legal basis, and whether you share it with other organisations
  • how long you keep the data, or how you decide that period
  • their rights: to see the data you hold, have it corrected or deleted, limit or object to how you use it, move their data to another service, and complain to you or to the data protection regulator

You also have to keep the data accurate and up to date, and protect it with strong security measures.

Cookie consent and a cookie policy

Cookies are small files your website stores in a visitor's browser, for example to keep them logged in or to count how people use your site. Unless an exception applies, you need your visitors' consent before you store cookies on their device, and you have to tell them clearly what the cookies are for. Many websites ask for that consent with a cookie banner, where visitors can accept or reject cookies.

Some cookies need no consent. Cookies that are strictly necessary for something the visitor asked for, such as keeping items in a shopping basket, are exempt. So are cookies used only to collect statistics on how your site is used, so you can improve it, provided the statistics are aggregated and can't identify or track individual visitors. That holds only if you don't share the information except to get help improving the site. You also have to explain the purpose clearly and give visitors a simple, free way to object, and it only covers visitors who don't object. So if your analytics provider also uses the data for its own purposes, beyond aggregate statistical reports for you, those cookies need consent after all. If you're not sure what your tool does with the data, ask for consent in your cookie banner.

A cookie banner alone isn't enough. You also need a cookie policy that explains which cookies your site uses, what each one does and how visitors can change their choice. It can be a page of its own or a section of your privacy policy.

Consent for marketing emails

Marketing emails to individual customers need their permission. To get that permission for your email marketing, use a sign-up box that visitors tick themselves.

The one exception is your own customers. If you got their email address when they bought from you, you can email them about similar products. This only applies if you gave them a simple way to refuse when you collected the address, and in every email since. Either way, every marketing email needs a way to unsubscribe, such as an unsubscribe link.

Terms and conditions

Terms and conditions are the rules for how your website and your services may be used. They explain how refunds, warranties and the features of your site work, so you and your customers both know where you stand.

In an online shop, your terms are also where you give the information customers must have before they order:

  • your business name, contact details and address
  • what you sell and its price, including VAT
  • how customers can pay, how delivery works, what it costs and how long it takes
  • how they can cancel, and when that right no longer applies

It also helps to explain how an order is placed and how you settle disputes. Written in plain words, your terms leave less room for misunderstandings later.

Shipping and return policies

If you sell products online, your customers need to know how shipping and returns work. In the UK, they can cancel an online order up to 14 days after it's delivered, without giving a reason. You must then refund them within 14 days of getting the item back.

Your policy should also show the estimated delivery time and where to contact you about late or faulty goods. If you offer more than the legal minimum, such as free returns within 30 days, say so clearly. Some items, such as personalised products or perishable goods, only have to be refunded if they're faulty, so list them in your policy.

A well-structured FAQ next to the policy answers the questions customers ask most.

Disclaimers

A disclaimer is a statement that limits your liability for how people use the information on your site. You'll probably want one if you give advice, sell digital products or let users post their own content.

A site with diet and workout programmes, for example, could add a line about health. It might ask readers to check with their doctor before they start a new diet or exercise routine.

End-user agreements

An end-user agreement, or end-user licence agreement, sets out how customers may use your software, digital tools or subscriptions. If you offer online courses on your website, say what students may not do with the materials. For example: "You may not resell the course materials or share your account with others."

How do I make my website compliant?

You make your website compliant by finding out what it collects and then putting the right pages and settings in place, in this order:

  1. List the personal data your site collects, from contact forms and orders to newsletter sign-ups, and the cookies and tools it uses. That list shows which of the pages and settings above your site needs.
  2. Put in place the pages and settings your list calls for, such as a cookie banner, or a sign-up box and an unsubscribe link if you send marketing emails.
  3. If your business handles personal data, pay the Information Commissioner's Office (ICO), which oversees data protection in the UK, a data protection fee unless it's exempt. On GOV.UK, you can check whether you need to pay, then register with the ICO and pay the fee.

Once your policies and cookie banner are live, review them whenever your site starts collecting something new.

A policy generator is usually enough to write these documents for a standard small business site or online shop. If you handle sensitive data, such as health information, it's worth paying a solicitor to check your policies, because that data has stronger legal protection.

Set up your policies with Termly

Instead of writing each document by hand, you can let a tool do most of the work. With Termly, you scan your website for cookies, answer a few questions about your business and get your policies and cookie banner ready to publish.

  • Termly generates a privacy policy and a cookie policy and keeps them up to date automatically. It also creates terms and conditions, disclaimers and shipping and return policies.
  • With Termly's cookie banner, you collect and manage your visitors' consent in one place. Termly also blocks cookie scripts automatically and supports Google Consent Mode v2.
  • Termly's scanning tool checks your website for the cookies it uses.

Compliance doesn’t have to be complicated

Now you know what your site needs, most of it comes down to a few clear pages, a cookie banner and good habits with the data you collect. A tool can create the pages and the banner for you. Set up your policies with Termly and publish them on your website.


Recommended reading

  • website-security
    Website SecurityNov 6, 2026

    "Your connection is not private": what it means and how to fix it

    "Your connection is not private" means your browser couldn't trust a site's certificate. See when it's safe to continue and how visitors and site owners fix it.
  • Illustration of a website showing a cookie consent banner with Accept all, Reject, and Settings options, next to a Manage consent panel with toggles for essential, analytics, and marketing cookies.
    Website SecurityAug 11, 2026

    Does your website need a cookie banner?

    Find out when a cookie banner is required, the legal requirements that apply, and how you can easily make your website GDPR-compliant.
  • website-security
    Website SecurityJul 13, 2026

    What is domain theft and how do you protect your domain?

    Learn what domain theft and domain hijacking means and how to protect your domain from external threats.