CONNECT WITH US
Tech

Tech

Google Says It’s Okay To Block Some JavaScript Resources With Robots.txt via @sejournal, @martinibuster

Search Engine Journal logo

Published on

Add as a preferred source on Google
Google Says It’s Okay To Block Some JavaScript Resources With Robots.txt via @sejournal, @martinibuster

Google's John Mueller clarified whether site owners can use robots.txt to block Googlebot from downloading specific resources that users see.

Google’s John Mueller answered a question about whether it’s okay to block Googlebot from indexing an age-verification popup that website visitors are required to see. His answer offers some clarity about whether it’s okay to purposely hide some kinds of content from Googlebot and explains how site owners can do it.

Google requires publishers to allow Googlebot to crawl everything that a user might see but that wasn’t always the case. There was a time in the early days of SEO where SEOs blocked Google from downloading JavaScript and CSS files in order to optimize the crawl budget and encourage better website indexing.

But there came a time when Google began rendering web pages and subsequently required site owners to allow Googlebot to download all resources that a user would see. Some sites that continued to block Google from downloading critical resources temporarily lost their rankings.

So the question about whether it’s okay to block Google from indexing a popup is reasonable.

The SEO asked on Reddit whether it’s okay to use robots.txt to prevent Googlebot from indexing an age-verification popup that a website is legally required to display to visitors.

The person described a hypothetical website that loads an age-verification popup from a separate domain through an API. The question was whether blocking Googlebot from crawling that external domain would prevent the popup from being rendered.

com – for legal reasons it has an age verification pop up that sits on a separate domain and is inserted on the page via an API.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.