: Is it OK to block my javascript files in robots.txt? Is it OK to block my javascript files in robots.txt, or can it hurt my website SEO-wise?
Is it OK to block my javascript files in robots.txt, or can it hurt my website SEO-wise?
More posts by @Dunderdale272
3 Comments
Sorted by latest first Latest Oldest Best
After Panda 4 update (May 2014), blocking css & js files will kill your seo.
There is a nice case study here that shows how doing that can hurt SEO :
yoast.com/google-panda-robots-css-js/
Nowadays Google wants to see your pages as same as users, so it is important to let him to see your client side scripts and style sheets.
You don't state the reason to do that, so the general answer is no.
JavaScript files are not usually crawled, search engines know they are there, but they usually don't do anything with them because they don't have any content for users. So there is no need to do that from the Search Engines/Crawlers perspective.
From the perspective of normal users, it makes less sense because users don't use the robots.txt file and if they want to check your JavaScript files, they can access them directly after checking your code.
About the specific question, no, it won't hurt your SEO in any way because is basically a rule that nobody would pay attention to it.
Potentially may affect you badly if you make a mistake and block a folder that has content, but assuming you won't make that mistake, there is no benefit or drawback.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.