SEO
Google’s Mueller explains how to exclude an age-verification popup from rendering
On Reddit, John Mueller said blocking a popup from another domain through robots.txt would generally work, but pages need testing.
Google’s John Mueller answered a Reddit question about an age-verification popup loaded from another domain. He said using robots.txt to exclude the popup from Google’s rendering would “generally work.”
Mueller outlined two options: block crawling in the popup domain’s robots.txt, or block the JavaScript file that loads the popup in the site’s own robots.txt. In the first case, Googlebot does not download the resource during rendering.
Mueller cautioned that site owners need to make sure their pages still load without the blocked resources. He also advised against blocking a single JavaScript file if it performs many functions.
The @MikeBlazerX post recommends checking the page render with URL Inspection before implementation. It also cites John Shehata’s note that Google has separate guidance and structured data for paywalls. Mueller’s answer was posted on Reddit and is not documentation.
Source post
@MikeBlazerX Original source ↗