Welcome to WebmasterWorld Guest from 184.108.40.206
joined:July 6, 2019
and input the code Options All -Indexes in htaccesshas nothing to do with Google, it disables the (usually unwanted) behavior of serving up a list of files in any directory visited. To prevent Google's indexing of files you do not want indexed the ideal solution is to noindex those directories or to disallow crawling in robots.txt. Just be aware that disallowing in robots.txt prevents access to resources that Google would need to evaluate your site. If the googlebot is not allowed to see your .css, .js and image files they can't really know how it will appear for visitors. The workaround is to disallow directories and then allow types of files.