<div style="display:inline;float:right;margin-left:1em"><g:plusone href="https://www.searchenginegenie.com/blog-seo/can-i-disallow-crawling-of-my-css-and-javascript-files/"></g:plusone></div>
<div style="display:inline;float:right;margin-left:1em"><g:plusone href="https://www.searchenginegenie.com/blog-seo/can-i-disallow-crawling-of-my-css-and-javascript-files/"></g:plusone></div>
{"id":859,"date":"2011-05-02T08:50:06","date_gmt":"2011-05-02T12:50:06","guid":{"rendered":"http:\/\/www.searchenginegenie.com\/blog-seo\/?p=859"},"modified":"2011-05-02T08:50:06","modified_gmt":"2011-05-02T12:50:06","slug":"can-i-disallow-crawling-of-my-css-and-javascript-files","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/blog-seo\/can-i-disallow-crawling-of-my-css-and-javascript-files\/","title":{"rendered":"Can I disallow crawling of my CSS and JavaScript files?"},"content":{"rendered":"<p style=\"text-align: center;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"560\" height=\"349\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube-nocookie.com\/v\/PNEipHjsEPU?fs=1&amp;hl=en_US&amp;rel=0\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube-nocookie.com\/v\/PNEipHjsEPU?fs=1&amp;hl=en_US&amp;rel=0\" allowscriptaccess=\"always\" allowfullscreen=\"true\"><\/embed><\/object><\/p>\n<p style=\"text-align: justify;\">A fun question from SEOmofo in Simi Valley. They ask \u201cIf I externalize all CSS style definitions and JaveScript scripts and disallow all user agents from accessing these files (via.robot.txt), would this cause problems for Googlebot? Does Googlebot need access to these files?\u201d<\/p>\n<p style=\"text-align: justify;\">I personally would recommend not blocking that for example the white house recently rolled out a new robot.txt and I think they blocked the images, directory or CSS or Java Script or something like that. You really don\u2019t need to that. In fact sometimes it can be very helpful if we think something spam is going on with Java Script or if somebody is doing a sneaky redirect or something like that. So my personal advice would to let Googlebot to go ahead and crawl that and then it\u2019s not like these files are huge anyway so it doesn\u2019t consume a lot of bandwidth. So my personal advice just let Googlebot access to all that stuff and then most of the time we won\u2019t ever fetch it. But in the rare occasion when we doing a quality check on behalf of someone or we receive a spam report and then we can go ahead and fetch that make sure your site is clean and not having any source of problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A fun question from SEOmofo in Simi Valley. They ask \u201cIf I externalize all CSS style definitions and JaveScript scripts and disallow all user agents from accessing these files (via.robot.txt), would this cause problems for Googlebot? Does Googlebot need access to these files?\u201d I personally would recommend not blocking that for example the white house [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-mattcutts-video-transcript"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":1,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/859\/revisions\/860"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}