Page 1 of 1

Robot.txt

Posted: Sun Jul 02, 2023 8:22 pm
by amir2314
Hi dear pablo
.
I used specifiec folder for js files and blocked them by robot.txt
. The question is this work can make issue for seo by google ?
. I using Google search console to submit my website on google .
.
Or its normal to block Js files with robot text ?
.
Actualy im confused . Its normal that i blocking js files by robot.txt or not ?

Re: Robot.txt

Posted: Mon Jul 03, 2023 4:00 am
by wwonderfull
Robots.txt blocking of JavaScript (JS) files might have an adverse effect on SEO and search engine crawl and indexing. Blocking JS files may make it more difficult for search engines to interpret and display your website, which may affect indexing and ranking. Instead, it is advised to permit search engines to access and scan JS files. This will enable them to better comprehend the functionality of your website and enhance overall SEO performance. Use other strategies, such as the "noindex" directive in HTML meta tags or server-side techniques, if blocking sensitive or non-indexable content. You can monitor difficulties with JS files and get alerts if there are issues with indexing or rendering thanks to Google Search Console, which offers insights into how Google sees and crawls your website.

Re: Robot.txt

Posted: Mon Jul 03, 2023 5:59 am
by Pablo
As far as I know it is not common to block the js folder.

Re: Robot.txt

Posted: Mon Jul 03, 2023 9:51 pm
by wb_user
amir2314 wrote: Sun Jul 02, 2023 8:22 pm Hi dear pablo
.
I used specifiec folder for js files and blocked them by robot.txt
. The question is this work can make issue for seo by google ?
. I using Google search console to submit my website on google .
.
Or its normal to block Js files with robot text ?
.
Actualy im confused . Its normal that i blocking js files by robot.txt or not ?
why you try to do that?! js files never create a bad effect on website. i never see a js file index in google search engine. in other words , js files never load and show in Google search results. you can test that and see, just use "site:yourwebsite.com"
~~~~
a little question ; Can you say which country you are from?

Re: Robot.txt

Posted: Tue Jul 04, 2023 9:14 am
by amir2314
wb_user wrote: Mon Jul 03, 2023 9:51 pm
amir2314 wrote: Sun Jul 02, 2023 8:22 pm Hi dear pablo
.
I used specifiec folder for js files and blocked them by robot.txt
. The question is this work can make issue for seo by google ?
. I using Google search console to submit my website on google .
.
Or its normal to block Js files with robot text ?
.
Actualy im confused . Its normal that i blocking js files by robot.txt or not ?
why you try to do that?! js files never create a bad effect on website. i never see a js file index in google search engine. in other words , js files never load and show in Google search results. you can test that and see, just use "site:yourwebsite.com"
~~~~
a little question ; Can you say which country you are from?
.
My idea of ​​this was that I thought that some bad bots could compromise the security of the host or my website by accessing Java files. But as it was said and the studies I had, it seems that there is nothing wrong with restricting Java files and it has no effect on the SEO of the website.

Re: Robot.txt

Posted: Tue Jul 04, 2023 9:32 am
by BaconFries
Matt Cutts suggestions we allow bots to crawl css and javascript folders
http://www.youtube.com/watch?v=PNEipHjsEPU
Taken from the following
OK to block /js/ folder using robots.txt?
it is a old response but interesting thought from Google Search Central on this.
See also
Blocking css files in robots.txt can affect your SEO Rankings