Opened 4 years ago

Closed 4 years ago

#8699 closed enhancement (fixed)

Empty index.php for plugins dir

Reported by: scribu Owned by: anonymous
Priority: low Milestone: 2.8
Component: General Version: 2.7
Severity: normal Keywords: has-patch tested
Cc:

Description

I suggest that an empty index.php file be also added to /wp-content/plugins/ and even /wp-content/themes/, just like the one in /wp-content/

Either that, or remove the existing file in /wp-content/.

PS: A google search for "index of" wp-content/plugins shows over 1 million hits.

Attachments (1)

plugins_index.patch (254 bytes) - added by mrmist 4 years ago.
plugins index.

Download all attachments as: .zip

Change History (4)

  • Keywords has-patch added

Though note #8260

mrmist4 years ago

plugins index.

  • Keywords tested added

Tested against 10937 on IIS and Apache2 hosts - plugin section functions as normal, plugin editor ok, seems to have no undesirable effects on the menu any more since #6478 was fixed.

Seems fine to go ahead with.

comment:3   ryan4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10940]) Add index.php to plugins and themes dirs to prevent dir listings. fixes #8699

Note: See TracTickets for help on using tickets.