How To Fix Googlebot Cannot Access CSS & JS Warning in Google Search Console

Google Search Console is a powerful tool for webmasters, and when it throws a warning like “Googlebot cannot access CSS and JS files”, it can be alarming.

I received an Email From the Google Team about a Warning that my site shows Some Errors in the Google Webmaster Tool Search Console. First, I ignored it. After a few days, my Traffic was down, and the Next Day, when I submitted my new post again, I received a Message.

Many website owners have recently received an email from Google with the title, “Googlebot cannot access CSS and JS files”.Google systems have recently detected an issue with your homepage that affects how well our algorithms render and index your content. Specifically, Googlebot cannot access your JavaScript and/or CSS files because of restrictions in your robots.txt file.

Understanding the Warning: “Googlebot Cannot Access CSS & JS Files”

When you see this warning in Google Search Console (GSC), it means that your site’s robots.txt file is blocking important resources (typically .css or .js files) from being crawled.

The warning typically appears in:

URL Inspection tool

Coverage report

Mobile Usability report

How to Fix Googlebot Cannot Access CSS & JS Warning

First, log in to your Gmail account and

Go to Google Search Console

Click on your website property

Navigate to Coverage or URL Inspection Tool

Check which resources are being blocked

Now, click on Google Index and open the Blocked resource, and see the error.

How To Fix Googlebot Cannot Access CSS & JS Warning
How To Fix Googlebot Cannot Access CSS & JS Warning

Now open crawl and open fetch as Google

How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress
How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress

You can Fetch Easily after Fetch. Click on robots.txt Tester. After opening robots.txt Tester, your site robots.txt file will be shown Now change your robots.txt and remove Disallow: /wp-includes/

How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress
How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress

and test your Site.

How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress

Open your WordPress Dashboard.and click on Yoast SEO Plugin if you use it.

Click on tool Option after open it Show

Now Remove Only Disallow: /wp-includes/ Line and Click on Save

How To Fix Googlebot Cannot Access CSS & JS Warning
How To Fix Googlebot Cannot Access CSS & JS Warning

Conclusion :

Fixing the “Googlebot cannot access CSS and JS files” warning is essential for proper indexing, user experience, and SEO performance. With a few changes in your robots.txt and proper validation in GSC, you can eliminate the issue and improve your Google visibility.

Now you can easily solve this problem if you need any help related to the post, and others can freely contact us. Give your Feedback. Thank you

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.