Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#59487 closed defect (bug) (invalid)

WordPress files exposed to Google robots

Reported by: nouha88's profile nouha88 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


Dear Sir/Madam,

I hope this message finds you well. I am reaching out for the first time to seek assistance regarding a matter concerning the WordPress Core. I hope I have directed my inquiry to the appropriate channel.

Upon conducting an examination using Google Search Console, I have observed that Google's web crawlers have identified certain JavaScript (JS) files originating from the "wp-includes" directory within WordPress. I have attached a screenshot to illustrate the specific files that Google's robots are detecting :

I would greatly appreciate it if you could kindly inform me whether this is indicative of an issue and, if not, provide guidance on how to prevent Google from detecting these files.

Thank you in advance for your assistance.

Best regards,

Change History (1)

#1 @sabernhardt
9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi and welcome to WordPress Core Trac!

Those scripts are listed in the "Crawled - currently not indexed" report. #28604 stopped blocking access to the wp-includes directory so search engines can crawl all resources related to each page.

If your concern is because of the URL, you probably could combine scripts into fewer files. I think you already have the WP Rocket plugin, and their documentation includes file optimization.

If you do not want those specific scripts to be crawled, it might be better to remove them entirely from the page. The 'wp-hooks' and polyfill scripts are dependencies of the WooCommerce 'woo-tracks' script.

Additional information:

For any further assistance with your site, please use the support forums:

I'll close this ticket as this is not a Core bug.

Note: See TracTickets for help on using tickets.