Complianz Privacy Suite

DNS Prefetching and GDPR

Aert Hulsebos

Aert Hulsebos


Popular articles

TCF for WordPress

The Transparency Consent Framework (TCF) is an initiative by IAB Europe and IAB Tech Lab to provide a platform for vendors, publishers, and consent management

Read More

TCF V2.0 release (Update)

Update: Released on October 5th 2020 Since August 15th the Transparency and Consent Framework V2.0 from IAB Europe or TCF V2 has been adapted by

Read More

Creating the Legal Hub

Have you seen our new Legal Hub? If not, have a look before reading this instruction article. We created the legal hub to centralize our

Read More
Share on facebook
Share on twitter
Share on linkedin

Some time ago, the question arose if DNS prefetching is GDPR proof (or any privacy law whereby prior consent is necessary e.g. DSGVO). Does something happen during prefetching that might constitute the sharing and/or storage of analytics or personal data of the end-user?

What is DNS Prefetching?

When a browser starts parsing and subsequently loading/displaying the webpage, it will load external services and content that will be resolved by the domain name. For example, adding:

<link href=”” rel=”stylesheet”>

During this process, the link will be resolved to an IP address to complete the DNS resolution and render the service. DNS resolution might experience latency issues because you’re waiting for the servers to connect and communicate, and the service needs to wait.

What if you could start communicating with the server before the service needs to be rendered and optimize DNS resolution?

This is DNS prefetching. Before the service is loaded, DNS resolution has started to minimize latency between loading the service and contacting the server.

dns resolution
CC Share-Alike

NB. Need a GDPR proof way of adding Google Fonts? Read this article to self-host fonts, no DNS resolution, or prefetch needed.

Is it GDPR Proof?

Yes. DNS prefetching does not share or store any personal data with an external server. In the above example, the prefetch will not reach During the DNS resolution, it will only try to retrieve the IP address of the service. Resolving the domain to e.g., is without delay and, therefore, is mostly used to optimize websites’ performance.

Recent articles