Is there a way to actually track ip addresses in glitch?

So uhhh, I have the problem with people entering my server, and the only way I can ban them in the game is by assigning a banned IP.

I hope there is, because otherwise I’ll have to probably destroy half of the code.

Hi @Koleotank, our infrastructure sets the X-Forwarded-For header appropriately for incoming requests, so the originating IP Address is listed in that header - probably the first one in the list.

In an Express route that looks like app.get('/', function(request, response) {}, for example, using something like console.log(request.headers['x-forwarded-for']); will get you the value of that header.

Hope this helps! Happy Glitching!