A signed history for your terms

On 2 March you shorten your refund window from 30 days to 14. On 22 March a customer who ordered on 27 February asks for their money back. Support opens the refund policy, reads "14 days" and says no. The customer replies that the page said 30 days when they ordered.

The customer is right. But the page says 14 now, and it doesn't show what it said in February.

The same question comes up about the terms a user accepted at sign-up and about the privacy policy linked under the sign-up form. Someone wants the wording of one page on one day, and they may not take your word for it.

Why the wording on that day counts

In the EU, a shop has to tell a consumer certain things before an online order, and what it tells them is part of the contract. Directive 2011/83/EU lists that information. Where the consumer has a right to withdraw from the contract, it includes "the conditions, time limit and procedures for exercising that right" (Article 6(1)(h)). The information "shall form an integral part of the distance or off-premises contract and shall not be altered unless the contracting parties expressly agree otherwise" (Article 6(5)). On who has to prove that the shop gave this information, the directive says: "As regards compliance with the information requirements laid down in this Chapter, the burden of proof shall be on the trader" (Article 6(9)). These rules are for contracts with consumers, and member states apply them through their own laws.

The privacy policy has its own date. Under Article 13(1) of the GDPR, a controller has to tell people who it is and what it does with their data "at the time when personal data are obtained". For someone who creates an account, that is the sign-up. Article 5(2) says the controller "shall be responsible for, and be able to demonstrate compliance with, paragraph 1", and paragraph 1 asks that personal data be processed "in a transparent manner in relation to the data subject".

A US case shows what happens when a company can't answer the question. In Snow v. Eventbrite, customers sued over refunds for events that were cancelled or postponed in the COVID-19 pandemic, and Eventbrite asked a federal court in California to send them to arbitration under its terms of service. As evidence it showed its sign-up and checkout screens as they looked in January 2016 and at the time of the motion. The plaintiffs had signed up from January 2018 on. In October 2020 the judge denied the motion, because the evidence "does not demonstrate what versions of the sign-in wrap agreements the plaintiffs would have seen during the relevant time period." A sign-in wrap agreement is the notice on a sign-up screen that says you accept the terms by signing up.

Eventbrite came back with what each plaintiff would have seen and won in September 2021, more than ten months later. That second order has a footnote: "A defendant need only save an image of its agreement webpages whenever it changes the look and feel so that it can show the court what it looked like at the time." Eventbrite could produce all versions of its terms since January 2016, with a sworn declaration, and the judge accepted that. What it could not produce at first were the sign-up and checkout screens that pointed to them.

This is general information, not legal advice. Rules differ by country and by case; ask a lawyer about yours.

What you have without a capture

You probably have some trace of the old wording: a "Last updated" line, the revisions in your CMS, the git log of the repository the page is built from, a folder of old PDFs. All of these are on your own systems, where your own people can change them, so the customer has to believe you. What did your pricing page say in March? goes through them one at a time, along with the Wayback Machine and the screenshot in someone's slide deck.

A WRL capture is made from outside. WRL loads the public page in a browser on its own servers and records a screenshot, the rendered HTML and the response headers. It signs the record and has DigiCert, an independent timestamp authority, timestamp it. Anyone you send the link to can check the capture without an account.

Record each version when you publish it

The pages to record are the terms, the privacy policy and the refund or cancellation policy. Add the sign-up page if it is public. The sentence or checkbox that points to the terms is on it, and that kind of screen is what the Eventbrite case was about. A checkout that needs a cart or a sign-in is out of WRL's reach.

Start by capturing each page once in the dashboard, and open the screenshots. If your site shows WRL a bot check or a cookie wall instead of the page, you want to find out now. After that, Sites in the dashboard lists your host with these pages.

On that site's Settings page, create the publish hook. It is a secret URL that needs no API key (Capture on Publish has the API call for it). Whatever publishes your pages calls the hook with their addresses:

curl -X POST "$WRL_HOOK_URL" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["/terms", "/privacy", "/refunds"]}'

WRL waits 60 seconds, so that your CDN serves the new text, and then captures each page. Write the addresses the way your site serves them: to WRL /terms and /terms/ are two pages, each with its own history.

Where the call comes from depends on how you publish. A site deployed from a repository can send the pages a push changed from a GitHub Actions step. On WordPress, a small plugin sends a page's address each time it is published or updated, and Contentful and Sanity can put the address into their publish webhook. A deploy notification from Netlify, Vercel or Cloudflare Pages can't name pages. It has WRL check your sitemap, and a check finds an edited page only if the sitemap gives it a later <lastmod>. If your terms change twice a year, running the curl line by hand on the day does the same.

A capture at publish time is the first time WRL sees a new wording. It says nothing about the day before. Say the last capture of the old wording is from January and the first capture of the new one is from 2 March: WRL can't tell you which of the two a customer saw on 27 February. So capture the same pages once a day as well, with a schedule:

curl -X POST https://api.webresourceledger.com/v1/schedules \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com/terms",
      "https://example.com/privacy",
      "https://example.com/refunds"
    ],
    "name": "Policy pages daily",
    "cron": "0 6 * * *"
  }'

Three pages a day are about 90 captures a month, and 200 a month are free. The daily capture also catches a change that nobody published on purpose, such as a plugin update or a colleague's fix in the database. The weekly digest email says on how many pages of the site the text changed in the past week and names the five most recent, so you hear about such a change.

WRL compares the text of each capture with the one before it. A day without a change adds a capture to the current version. A new wording starts the next version. After a year with two changes, the refund policy has about 365 captures in three versions.

Find the wording for a date

In the dashboard, open Sites, then the site, then the page. Its history lists the versions and when each was first and last seen. Enter the day under "What did this page say on". WRL names the last capture by the end of that day and the first one after it, and says whether both show the same text.

For an order you know the time too. Enter it in the time field next to the day, in UTC, or pass it to the API:

curl "https://api.webresourceledger.com/v1/sites/example.com/history?url=https%3A%2F%2Fexample.com%2Frefunds&at=2027-02-27T16:40:00Z" \
  -H "Authorization: Bearer YOUR_API_KEY"

Next to the page's versions, the answer has an at object:

{
  "requested": "2027-02-27T16:40:00.000Z",
  "before": {
    "id": "cap_5e1c9a3f7b2d4086a4c7e19d0b36f582",
    "createdAt": "2027-02-27T06:00:12.000Z",
    "version": 2
  },
  "after": {
    "id": "cap_9d4b7e20c6a14f3e8b05d2c7a1f96e43",
    "createdAt": "2027-02-28T06:00:09.000Z",
    "version": 2
  },
  "sameText": true
}

Version 2 is the 30-day wording. WRL captured it at 06:00 on the day of the order and at 06:00 the day after, with the same text both times. WRL has nothing from the 24 hours between the two, and the order at 16:40 is in that gap. The text is the same on both sides of it, so support refunds the order.

The answer can come out differently:

  • sameText is false. An order at 09:30 on 2 March falls between the daily capture at 06:00, which shows 30 days, and the capture at 14:09 that followed the publish, which shows 14. The wording changed somewhere in those eight hours, and WRL can't say on which side of 09:30. Your deploy log may, but that is your own record again.
  • before is null. The time is from before your first capture of the page. WRL captures from the day you set it up and has nothing older.
  • You passed a date without a time. at=2027-03-02 means the end of that day in UTC, so on the day of a change it describes the evening. Pass the time when you have one.

To see what changed between two versions, take the diffUrl that the history gives for a version and add ?include=text. The text part of the answer compares the two texts word by word, without markup:

{
  "changed": true,
  "stats": { "addedWords": 3, "removedWords": 3 },
  "segments": [
    { "op": "equal", "text": "Refund policy Refund policy Last updated " },
    { "op": "delete", "text": "12" },
    { "op": "insert", "text": "2" },
    { "op": "equal", "text": " " },
    { "op": "delete", "text": "January" },
    { "op": "insert", "text": "March" },
    { "op": "equal", "text": " 2027 We refund a payment within " },
    { "op": "delete", "text": "30" },
    { "op": "insert", "text": "14" },
    { "op": "equal", "text": " days of the charge." }
  ],
  "truncated": false
}

"Refund policy" is there twice because the page's title and its heading are both text. On a longer page, unchanged stretches are cut to 120 characters next to each change, and a skip segment gives the number of characters left out. In the dashboard, "Compare with version 2" in the page's history opens the same comparison under "Text Changes", with removed words struck through and added words underlined.

Hand it to the other side

Send two captures: the last one before the date and the first one after it. None of the following needs an account or an API key.

  • The verification link, https://api.webresourceledger.com/v1/verify/{id}. It opens in a browser and shows the result of the checks, the capture time and the screenshot.
  • The bundle, https://api.webresourceledger.com/v1/captures/{id}/artifacts/wacz. It is a WACZ file with the page's HTML, its network traffic, the screenshots, a hash of each file, WRL's signature and the timestamp. The recipient can check it on their own machine with npx @w-r-l/verify capture.wacz --origin https://api.webresourceledger.com, and with --legal it writes a plain-text report to go with the capture.
  • The certificate, https://api.webresourceledger.com/v1/captures/{id}/certificate. This PDF describes how the capture was made and is written to support US Federal Rule of Evidence 902(13). A qualified person still has to adopt and sign it.

Terms are long, and a screenshot covers the top 8,000 CSS pixels of a page. The wording below that point is in the rendered HTML, which is in the bundle and at /v1/captures/{id}/artifacts/html. Send the HTML along with the picture.

The word-by-word comparison needs your API key or your dashboard sign-in, so only you can use it. The other side can compare the HTML of the two captures themselves, or recompute the text hash of each with the script on the Sites page.

For a lawyer or an auditor who wants the whole history, "Download history (CSV)" in the page's history gives one row per capture, with its time, version, text hash, bundle hash, HTTP status and verification link. The bundle hash is the capture's wacz.bundleHash, which ties each row to its signed WACZ file.

If the dispute may end up before a court in the EU, turn on Qualified Timestamps (eIDAS) in Settings before you start recording. Captures then also have a timestamp from a qualified trust service provider, and Article 41(2) of the eIDAS Regulation gives such a timestamp "the presumption of the accuracy of the date and the time it indicates and the integrity of the data to which the date and time are bound." The DigiCert timestamp on each capture is not a qualified one. The first 50 qualified timestamps each month are free, then they cost €0.10 each. Legal Evidence explains how captures map to the US Federal Rules of Evidence and to eIDAS.

What the record shows and what it doesn't

A capture shows what WRL's browser was served at one address at one time. What that leaves out:

  • The time between two captures. With a capture at each publish and one a day, the gaps are a day or less as long as the daily capture succeeds. A wording that was online for an hour between two captures is still not on record.
  • Whether the customer saw the page, ticked a box or agreed to anything. Your own sign-up and order records have that. The capture shows what the page behind the link said.
  • Which version applied to whom. A capture shows the page, with any "effective from" line that is on it. Whether the old or the new terms govern a given customer is a question about the contract.
  • What visitors in other countries got. WRL's browsers have so far all been in the United States. If you serve different terms by country, the capture shows what a visitor there gets.
  • Pages behind a sign-in or inside a checkout.
  • Text in images. Versions are counted by text, so a clause that is part of an image doesn't start a new version. Terms published as a PDF are captured as a file, up to 10 MB, and compared as a file.
  • The past. WRL captures from the day you start. For last year's wording, the Wayback Machine is the place to look.

A capture is a technical record. Whether a court or a regulator accepts it is up to them.

Keep a record of your own website has the setup for a whole site and what it costs. Sites and Page History explains versions, the history of a page and how WRL decides that a text changed.