Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Can I disallow crawling of my CSS and JavaScript files?

Loading...

Sign in or sign up now!
7,224
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Mar 6, 2009

On February 26, 2009, Google software engineer Matt Cutts collected questions on Google Moderator and answered many of them on video.

SEOmofo from Simi Valley asked:

If I externalize all CSS style definitions and JavaScript scripts and disallow all user agents from accessing these external files (via robots.txt), would this cause problems for Googlebot? Does Googlebot need access to these files?

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • In other words, "let us inspect your bag because if you don't, we'll assume you're smugging drugs." Nice.

  • Thanks for the reply, Matt!

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Does Google index javascript via the document.write() method? I have some sites that can not use includes and are on different servers so I created a navbar in javascript from one publish point using that method.

  • Custom blog writing services use professional writers. You need to be sure the content provided to you really is written by the writer and not copied from another custom written blog. This could only make you look bad and even get you blacklisted with the search engines. Always be sure the content provided by a blog writing service is unique and written by them.

  • There can't be a problem with the CSS and Javascripts, if you implement X-Robots with the directives "noindex,follow", or in the robots.txt the "noindex" directive.

  • interesting answer - at end u say that not blocking the css etc would allow fetching it in rare case eg of manual spam review needed. however ROBOTS.txt only blocks indexing bots, not others from seeing/using those files. anyone can find non-indexed files by reading robots.txt so u could do so for review... confused.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more