celery/modules/01-iplog.js
2024-07-28 06:37:14 -07:00

12 lines
514 B
JavaScript

const domain = "not-ip-logger.alpha.beta.gamma.among-us-sussy-impostor.goofy-ahh-subdomain.google.com.zip.txt.tar.gz.celery.eu.org";
module.exports = (app, dir, log) => {
app.get("*", (req, res, next) => {
if (req.headers.host === domain) {
log.info(`someone from ${req.headers["x-forwarded-for"]} fell for it`);
res.send(`<meta http-equiv="refresh" content="0; url = https://www.youtube.com/watch?v=dQw4w9WgXcQ">\n<pre>haha you are beig logge'd</pre>`);
} else {
next();
}
});
}