konradbartecki / blog-2021

blog-2021-konradbartecki.vercel.app
MIT License
4 stars 0 forks source link

blog/Blazor-serverside-get-remote-ip #1

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Remote client's IP in server side Blazor (2021) – Personal blog

How to get remote client IP address in server side Blazor

https://bartecki.me/blog/Blazor-serverside-get-remote-ip

Sirvaude commented 1 year ago

Both approaches may fail if the user injects js from an extension and replace the getIpAddress function with a simple string return with a fake IP if I'm not wrong as we are relying on client side code.