Open utterances-bot opened 1 year ago
How to get remote client IP address in server side Blazor
https://bartecki.me/blog/Blazor-serverside-get-remote-ip
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.
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