Record your website before a relaunch
On 19 January you replace your website: new design, new CMS, new addresses for the blog. In March a customer who ordered a coffee machine on 14 January asks when the technician will come to install it. The product page said installation was included, they write. Today's page says nothing about installation, and nobody in sales remembers what it said in January. The old WordPress was switched off in February.
A relaunch changes all pages of a site on one day. This page follows one site through it: what to capture before the switch, what to capture after it, and what the record can tell you later. WRL makes each capture from outside your systems, signs it and has an independent authority timestamp it.
The site is an example with invented dates and counts: 160 pages on WordPress at example.com, replaced by a new system on the same host name. The calls need an API key with the capture scope. Sites and Page History explains what a page, a version and a state are.
11 January: put the old site on record
Start at least a week before the switch, so that you have time to fix what the first run shows.
WRL doesn't follow links. It captures the pages a sitemap lists and the pages you name. WordPress serves its sitemap at /wp-sitemap.xml. Count what it lists:
curl -X POST https://api.webresourceledger.com/v1/sites/example.com/sitemap \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sitemapUrl": "https://example.com/wp-sitemap.xml"}'
{ "host": "example.com", "sitemapUrl": "https://example.com/wp-sitemap.xml", "pages": 160, "newPages": 160, "withLastmod": 142, "otherHosts": 0, "topOtherHost": null, "truncated": false }
The sitemap lists 160 addresses, and your account has no capture of them yet. 80 are pages, 62 are blog posts and 18 are category and author archives. Set the site up and ask for the first run:
curl -X PUT https://api.webresourceledger.com/v1/sites/example.com \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sitemapUrl": "https://example.com/wp-sitemap.xml", "dailyCheck": true}'
curl -X POST https://api.webresourceledger.com/v1/sites/example.com/check \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"maxCaptures": 160}'
{ "site": "example.com", "mode": "check", "status": "queued", "maxCaptures": 160 }
The check starts within about a minute and captures 10 pages a minute by default, so the run takes about a quarter of an hour. When it is done, an email says how many pages were captured and how many failed. "Add a site" in the dashboard does the same, and shows the count first: "The sitemap lists 160 pages. All 160 are free this month."
Then open the site in the dashboard. "Needs attention" lists the pages whose capture failed, is partial or got an error status. Look at a few screenshots, too. If your site shows WRL's browser a bot check instead of the page, this is the week to fix it.
18 January: the last pass
From the afternoon of the 18th nobody edits the old site. Capture all pages a second time. A page that nobody touched since the 11th has only its capture from that day, and the record can't show that the same text was still online a week later. With a second capture it can.
The daily check has been on since the first run, but it won't do this. It only takes pages that are new, or that the sitemap dates later than their latest capture. Name the pages instead. WRL's list of the site's pages has their addresses:
curl -s "https://api.webresourceledger.com/v1/sites/example.com/pages" \
-H "Authorization: Bearer $WRL_API_KEY" | jq -r '.data[].url' > old-urls.txt
split -l 100 old-urls.txt part-
for f in part-*; do
curl --fail-with-body -sS -X POST https://api.webresourceledger.com/v1/sites/example.com/check \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: text/plain" --data-binary "@$f" && rm "$f"
sleep 600
done
Keep old-urls.txt. After the switch the old sitemap is gone, and this file is your list of old addresses.
A call names up to 100 pages, one address per line. WRL works through them at 10 a minute, so the loop waits ten minutes before it sends the next file. It deletes each file once WRL has taken it, so a file that is still there afterwards was refused. Each answer lists the captures it started, with address and ID, and the pages it didn't take. These 160 captures take the month past its 200 free ones (What it costs).
Then choose "Download pages (CSV)" on the site's page. The file has one row per page with the verification link of its latest capture. Tonight that is the last capture of the old page. After the switch the same download links to the new one.
19 January: the switch
At 09:00 UTC the new system answers at example.com. It serves its sitemap at /sitemap.xml, and /wp-sitemap.xml is gone. Tell WRL first, or each check asks for /wp-sitemap.xml and reports that it could not read the sitemap. Send the PUT from the 11th again with the body {"sitemapUrl": "https://example.com/sitemap.xml"}. The daily check stays on, because a PUT changes only the fields it names.
Give the new system the site's publish hook, so that WRL captures a page when it is published. If you verified ownership of the host with the file at /.well-known/wrl-site-verification.txt, the new system has to serve that file too, or the next 30-day check misses it.
The count call from the 11th, sent without a body, now answers "pages": 140, "newPages": 64. The 64 are the 56 blog posts that moved from addresses like /2025/03/descaling-guide/ to /blog/descaling-guide/, and 8 new pages. The other 76 pages kept their address.
A check would capture the 64 new addresses, and the other 76 only if the new sitemap dates them later than yesterday evening's captures. To capture all 140 whatever the dates say, name them. POST /v1/sitemap returns the addresses a sitemap lists, up to 200:
curl -s -X POST https://api.webresourceledger.com/v1/sitemap \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/sitemap.xml"}' | jq -r '.urls[]' > new-urls.txt
Send new-urls.txt through the same loop as the evening before. About a quarter of an hour later each page of the new site has a capture from its first morning. Look at a few screenshots again, because a new CDN or firewall may show WRL's browser a bot check where the old host didn't.
Which old addresses are gone
Now ask for a check, without a body. It finds nothing to capture, because each page in the sitemap has a capture from this morning. But it also compares the sitemap with the pages on record:
curl -X POST https://api.webresourceledger.com/v1/sites/example.com/check \
-H "Authorization: Bearer $WRL_API_KEY"
# a few minutes later
curl -s https://api.webresourceledger.com/v1/sites/example.com \
-H "Authorization: Bearer $WRL_API_KEY" \
| jq -c '.settings.lastCheck | {pagesRead, newPages, changedPages, captured, notInSitemapCount}'
{"pagesRead":140,"newPages":0,"changedPages":0,"captured":0,"notInSitemapCount":84}
84 pages with captures are not in the new sitemap: the 62 old blog addresses, the 18 archives and 4 pages that were not moved. settings.lastCheck.notInSitemap has up to 100 of the addresses, and "Not in the sitemap (84)" on the site's page lists them.
The sitemap doesn't say what an old address answers now: a redirect, a "not found" page, or still the old page. Capture the 84 again and each has its answer on record:
curl -s https://api.webresourceledger.com/v1/sites/example.com \
-H "Authorization: Bearer $WRL_API_KEY" \
| jq -r '.settings.lastCheck.notInSitemap[]' > gone.txt
curl --fail-with-body -sS -X POST https://api.webresourceledger.com/v1/sites/example.com/check \
-H "Authorization: Bearer $WRL_API_KEY" \
-H "Content-Type: text/plain" --data-binary @gone.txt > gone-captures.json
28 of them answer with HTTP 404. WRL captures a "not found" page like any other page: the capture completes and is signed, and the page gets the state error_status, which the dashboard shows as "HTTP 404". Only an error answer with an empty page fails. GET /v1/sites/example.com/pages?state=error_status lists the 28. They stay under "Needs attention", because WRL has no way to mark a page as retired.
The other 56 answer with a redirect to the new address of their post. WRL's browser follows it, so the capture of /2025/03/descaling-guide/ shows the page at /blog/descaling-guide/ with status 200, filed under the old address. Where the redirect went is in the response headers, which WRL fetches in a request of its own without following redirects:
curl -s https://api.webresourceledger.com/v1/captures/cap_8b3d5f7a9c1e4b20a6d8f0c2e4a6b8d1/artifacts/headers \
| jq -c '{status, location: .headers.location}'
{"status":301,"location":"https://example.com/blog/descaling-guide/"}
gone-captures.json has the IDs of the 84 captures. Run this call over them, at most 60 a minute, for a list of what each old address answered on the day of the switch.
What changed
WRL compares the text of each capture with the capture of the same address before it, and GET /v1/sites/{host}/changes lists the captures whose text differs. With ?since=2027-01-19&limit=200 it returns 160 changes, one for each old address: the 76 pages that kept their address, the 56 that redirect, and the 28 that now answer 404, marked with "httpStatus": 404. The 64 new addresses are not in it, because a page's first capture is never a change. "Recent changes" on the site's page shows the same list, ten at a time.
The menu and the footer are text too, so a redesign changes the text of all pages, and the list can't tell a rewritten product page from one that only got the new menu. To see that, compare one page. This is the entry for the product page the customer will ask about:
{
"url": "https://example.com/machines/office-40/",
"path": "/machines/office-40/",
"at": "2027-01-19T09:24:53.000Z",
"captureId": "cap_c2e4a6b8d0f24c61b3d5f7a9c1e3b5d7",
"version": 2,
"previousCaptureId": "cap_19d3b5f7a9c14e02b4d6f8a0c2e4b6d8",
"diffUrl": "https://api.webresourceledger.com/v1/captures/cap_19d3b5f7a9c14e02b4d6f8a0c2e4b6d8/diff/cap_c2e4a6b8d0f24c61b3d5f7a9c1e3b5d7",
"verifyUrl": "https://api.webresourceledger.com/v1/verify/cap_c2e4a6b8d0f24c61b3d5f7a9c1e3b5d7",
"httpStatus": 200
}
Call its diffUrl with ?include=text, and the text part of the answer compares the two texts word by word:
{
"changed": true,
"stats": { "addedWords": 1, "removedWords": 16 },
"segments": [
{ "op": "equal", "text": "Office 40 | Example Machines " },
{ "op": "delete", "text": "News" },
{ "op": "insert", "text": "Blog" },
{ "op": "equal", "text": " Support Contact Office 40 The Office 40 makes up to 40 cups an hour and suits offices of 15 to 30 people." },
{ "op": "delete", "text": " Installation by our technician and the first box of filters are included in the price." },
{ "op": "equal", "text": " Rent it for 89 euros a month or buy it for 2,400 euros. Both prices are without VAT. Technical data Water tank 4 litres" },
{ "op": "skip", "chars": 150 }
],
"truncated": false
}
The menu entry "News" is now "Blog". The sentence about installation is gone. Nobody had decided to drop it. The import skipped a text block. In the dashboard, "Compare with version 1" in the page's history shows the same words under "Text Changes".
Pages that moved
For WRL a page is one address. /blog/descaling-guide/ is a new page with one capture, and the history of /2025/03/descaling-guide/ doesn't continue there. Even a trailing slash counts: /pricing/ and /pricing are two pages. You can't tell WRL that two addresses are the same page.
Because the old address redirects, its own history has the comparison anyway: version 1 is the old post, version 2 the page the redirect leads to. Where an old address answers 404 and its content is at another address now, compare two captures by ID. The comparison takes any two complete captures in your account, whatever their addresses, the older one first:
curl -s "https://api.webresourceledger.com/v1/captures/cap_5d7f9b1c3e5a4d72c8e0a2b4d6f8c0e2/diff/cap_e6a8c0d2f4b64e83d1f3b5c7e9a1d3f5?include=text" \
-H "Authorization: Bearer $WRL_API_KEY"
The dashboard opens the same comparison at https://api.webresourceledger.com/ui#/diff/, followed by the two IDs with a slash between them.
9 March: what the page said before the switch
The customer ordered on 14 January. In the dashboard, open Sites, the site, and /machines/office-40/. Its history starts with "3 captures · 2 versions · since Jan 11, 2027". Dates on these pages are in UTC. Enter 14 January under "What did this page say on":
The last capture by the end of Jan 14, 2027 (UTC) is from Jan 11, 2027, 10:06 UTC, version 1. The next one, from Jan 18, 2027, 17:04 UTC, shows the same text.
Version 1 has the sentence about installation. WRL saw it three days before the order and four days after it, the same text both times, and has nothing from the days between. The answer ends with links to the verification pages of the two captures, which anyone can open without an account. Send those.
The API gives the same answer as the at object of the page's history:
curl "https://api.webresourceledger.com/v1/sites/example.com/history?url=https%3A%2F%2Fexample.com%2Fmachines%2Foffice-40%2F&at=2027-01-14" \
-H "Authorization: Bearer $WRL_API_KEY"
{
"requested": "2027-01-14T23:59:59.999Z",
"before": { "id": "cap_3a7f1c9e5b2d4086a4c7e19d0b36f582", "createdAt": "2027-01-11T10:06:31.000Z", "version": 1 },
"after": { "id": "cap_19d3b5f7a9c14e02b4d6f8a0c2e4b6d8", "createdAt": "2027-01-18T17:04:09.000Z", "version": 1 },
"sameText": true
}
Without the captures of 18 January, after would be the capture of the new page on the 19th and sameText would be false. WRL couldn't say whether the text changed before or after the order. For a day before the first run, before is null. WRL has nothing from then, and the Wayback Machine is the place to look.
When the host name changes too
A site in WRL is one host name. www.example.com and example.com are two sites, and so are example.com and a new domain, and WRL can't join them. After a move to another name, set the new host up as a site of its own, with its sitemap and its hook. The old site keeps its captures.
Page histories and "Recent changes" stop at the host name. To compare a page on the old host with the one that replaced it, compare the two captures by ID as above. To see what the old addresses answer now, send old-urls.txt to the old site's check again and read the headers of those captures: a redirect shows there with its status and location.
What it costs
The example made 544 captures in January: 160 in the first run, 160 in the last pass, 140 of the new site and 84 of old addresses. 200 a month are free. Without a payment method WRL stops there and lists the other pages of a call under leftOut, with the reason "monthly capture quota used up". With one, the other 344 cost €0.05 each, €17.20 in all. Leaving out the last pass would save €8.
What the record doesn't have
- Pages that no sitemap listed and nobody named, such as the landing page of an old campaign. Add their addresses to
old-urls.txt. - Pages behind a sign-in, such as a customer area or a checkout.
- A copy you could put back online. A capture has a screenshot, the rendered HTML and the response headers of one page, without the images and stylesheets it loaded.
Keep a record of your own website lists more limits, such as bot protection and where WRL's browsers are.
A capture is a technical record. Whether a court or a regulator accepts it is up to them. This page is general information, not legal advice.
A signed history for your terms shows what to hand over with a capture. For a site that is shut down and not replaced, see Preserve a website before it goes offline.