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);
|
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 (sizeof($proxyHeaders) == 0) {
|
||||||
if (False) {
|
|
||||||
// Non-proxied request; this is senseless, go fetch!
|
// Non-proxied request; this is senseless, go fetch!
|
||||||
header("HTTP/1.1 403 Forbidden");
|
header("HTTP/1.1 403 Forbidden");
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user