RaygunCore.AspNetCore by AFomin

<PackageReference Include="RaygunCore.AspNetCore" Version="2.0.0" />

 HttpRequestExtensions

static class HttpRequestExtensions
public static bool IsLocal(this HttpRequest request)

Returns true if the IP address of the request originator was 127.0.0.1 or if the IP address of the request was the same as the server's IP address.