diff options
author | sotech117 <michael_foiani@brown.edu> | 2025-08-27 00:13:27 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2025-08-27 00:13:27 -0400 |
commit | 904fe73598ab0d424acb9664d501b229f00d30a0 (patch) | |
tree | 32c0512135e1bfec007f479dfa42130a9d6eda21 | |
parent | 9d2ebe6baff737bc88a35c9b64b914825e20275a (diff) |
logs
-rw-r--r-- | server.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -59,6 +59,7 @@ const main = () => { // throw a 403 res.writeHead(403, { 'Content-Type': 'text/plain' }); res.end('Forbidden'); + console.log('Unauthorized access attempt from ' + (req.headers['x-forwarded-for'] || req.socket.remoteAddress)); } }); |