Skip to content

Commit 5692e7d

Browse files
committed
Send a 400 for unknown error.* URLs
1 parent 1d57a77 commit 5692e7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Caddyfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
header_up X-Forwarded-For "\.\d{0,3}(,\s*|$)" ".0$1"
4545
}
4646
}
47+
48+
respond 400 {
49+
body "Unrecognized URL"
50+
close
51+
}
4752
}
4853

4954
# For any other unrecognized services, we reject the request outright:

0 commit comments

Comments
 (0)