WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18620 closed enhancement (duplicate)

add index.php to wp-includes

Reported by: AJAcommerce Owned by: AJAcommerce
Milestone: Priority: normal
Severity: minor Version: 3.2.1
Component: Security Keywords:
Focuses: Cc:

Description

I suggest an index.php file is added to the wp-includes directory with the

php comment Silence is golden

to keep the directory from being viewable.

Change History (2)

comment:1 follow-up: @nacin3 years ago

Because wp-includes is a core WordPress directory that should never have modifications, it's quite obvious what files will be there. Blocking these kinds of directories is rather useless.

comment:2 in reply to: ↑ 1 @SergeyBiryukov3 years ago

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

Replying to nacin:

Because wp-includes is a core WordPress directory that should never have modifications, it's quite obvious what files will be there. Blocking these kinds of directories is rather useless.

It could prevent unnecessary crawling by search engines on misconfigured servers.

This is a duplicate of #18546, though.

Note: See TracTickets for help on using tickets.