WordPress themes and plugins like to use DNS prefetching to reduce load times. To be precise, prefetching asks the browser to resolve an address from the respective name server in advance. Since this naturally generates a request, it could also be relevant under the GDPR. I cannot give legal advice on that, but DNS prefetching is not technically necessary. To stop WordPress from doing DNS prefetching, simply use the following snippet.
remove_action('wp_head', 'wp_resource_hints', 2);
Simply put the line of code in your own plugin or, if you really have to, in the functions.php of your child theme or in WordPress plugins such as “Snippets”.




