SEO
Mueller explains how to keep Googlebot from rendering an age check
Robots.txt can block the resource that loads the popup. The page still needs to work without it.
Google’s John Mueller answered a Reddit question about an age check loaded from a different domain. If that domain’s robots.txt disallows crawling of the resource, Googlebot will skip it when rendering the page.
If a dedicated JavaScript file on the site loads the popup, the site can block that file through robots.txt. Mueller advises checking that the page loads without the blocked resource and leaving a shared script accessible if it performs other tasks.
Source post
@notjohnmu Original source ↗