HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method GetClientKey

    GetClientKey(IPAddress?)

    Gets the key that the per-client limits count requests from the specified client address under. Requests from addresses with the same key share a count.

    Declaration
    public static IPAddress GetClientKey(IPAddress? address)
    Parameters
    Type Name Description
    IPAddress address

    The client address (RemoteIpAddress), or null for a connection without a remote IP address.

    Returns
    Type Description
    IPAddress

    An IPv4 address as is, the IPv4 address that an IPv4-mapped IPv6 address maps, the network address of the /64 network that any other IPv6 address is in (such as 2001:db8:1:2:: for 2001:db8:1:2::1), or Any (0.0.0.0) for null.

    Remarks

    Exemptions are not applied: exempt addresses (see ExemptPrivateNetworks and ExemptNetworks) get a key like any other.

    © Singulink. All rights reserved.