Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IIpAddressUtilities

    Provides utility methods for working with IP addresses.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IIpAddressUtilities

    Methods

    View Source

    IsAllowListed(IPAddress, string)

    Determines whether the specified client IP address is in the allow list.

    Declaration
    bool IsAllowListed(IPAddress clientIpAddress, string allowedIpString)
    Parameters
    Type Name Description
    IPAddress clientIpAddress

    The client IP address to check.

    string allowedIpString

    The allowed IP string pattern to match against.

    Returns
    Type Description
    bool

    true if the IP address is in the allow list; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX