Skip to content

Commit 6e35c7d

Browse files
committed
Log rejected proxy attempts
1 parent 9145c84 commit 6e35c7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function createHttpRequestHandler(options: {
4545
// don't accept proxying here (lots of attempted abuse load).
4646
const url = new URL(req.url!);
4747
if (!url.hostname.endsWith(options.rootDomain)) {
48+
console.log("Rejecting attempted proxy request to", req.url);
4849
res.writeHead(400, { connection: 'close' });
4950
res.end();
5051
return;

0 commit comments

Comments
 (0)