Re-enabled '403 Forbidden' result for non-proxied requests
This commit is contained in:
parent
ac5f509d4e
commit
01bb3f33da
@ -20,8 +20,7 @@
|
||||
file_put_contents('../requestHeaders.log', (new DateTime())->format('Y-m-d\TH:i:s.u') . ' --- ' . (json_encode($proxyHeaders, JSON_FORCE_OBJECT)) . PHP_EOL, FILE_APPEND);
|
||||
}
|
||||
|
||||
# if (sizeof($proxyHeaders) == 0) {
|
||||
if (False) {
|
||||
if (sizeof($proxyHeaders) == 0) {
|
||||
// Non-proxied request; this is senseless, go fetch!
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user