Read targeted header from x-forwarded-host
This commit is contained in:
@@ -4,9 +4,7 @@ import { clearInterval, setInterval } from 'node:timers';
|
||||
const server = createServer((req, res) => {
|
||||
const connOpenDate = new Date();
|
||||
const attacker = req.headers['x-forwarded-for'];
|
||||
const host = req.headers['X-Targeted-Host'];
|
||||
|
||||
console.log(req.headers);
|
||||
const host = req.headers['x-forwarded-host'];
|
||||
|
||||
console.log(
|
||||
`[${connOpenDate.toLocaleString()}] ${attacker} targeted ${host} on ${
|
||||
|
||||
Reference in New Issue
Block a user