#36467 closed enhancement (wontfix)
disable zip extension in themes directroy
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | template | Cc: |
Description
a lot of developers upload theme zip file to wp-content/themes/theme_name.zip then they extact the file and forget to remove it later . and thats make it easy to anyone to download this seem later if he view source and get theme directory wp-content/themes/ahmed_theme/style.css if he tries to download the file wp-content/themes/ahmed_theme.zip the file will start to download . so i think wordpress default htaccess must come with this rewrite rule to protected users .
RewriteRule ^wp-content/themes/.*\.(zip|rar)$ - [F,L,NC]
Change History (2)
Note: See
TracTickets for help on using
tickets.
At this time, we don't add rewrite rules to block access to files - if a user doesn't want files downloadable, they shouldn't be placed within a publicly readable location, or should have a unqiue non-guessable filename.
Some security plugins are known to add extra rewrite rules to potentially block invalid requests, I don't think I've seen any of those add a similar rule to this either.