Opened 2 years ago
Last modified 21 months ago
#17619 new enhancement
Soft 404 at /wp-content/plugins/
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | info@…, admin@… |
Description
/wp-content/plugins/index.php would be better written with a proper 404.
<?php
header('HTTP/1.0 404 Not Found'); // Silence is golden.
?>
Attachments (3)
Change History (12)
comment:1
johnbillion — 2 years ago
comment:2
miqrogroove — 2 years ago
Technically, there is nothing in the response entity, so either 403 or 404 is appropriate.
comment:4
BenChapman — 2 years ago
As per RFC2616 if a reason is to be given for denying access then 403 should be used, otherwise 404 should be used. In this case I would say 403 would be the better response code with a reason included for forbidding access.
comment:5
BenChapman — 2 years ago
- Cc admin@… added
comment:6
solarissmoke — 2 years ago
If this is going to change, then it should change for all wp-content directories, i.e., /themes and /uploads also.
comment:7
DH-Shredder — 2 years ago
- Type changed from defect (bug) to enhancement
jakub.tyrcha — 23 months ago
comment:8
jakub.tyrcha — 23 months ago
Why should we include this in the uploads/ directory as well?
jakub.tyrcha — 23 months ago
Note: See
TracTickets for help on using
tickets.

Shouldn't it technically be a 403?