• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IIPFilterController

Do not implement. This interface is meant for reference and unit test purposes only. There is no guarantee that this interface will not change.

Namespace: DotNetNuke.Entities.Host
Assembly: DotNetNuke.dll
Syntax
public interface IIPFilterController

Methods

| Improve this Doc View Source

AddIPFilter(IPFilterInfo)

Adds an IP filter.

Declaration
int AddIPFilter(IPFilterInfo ipFilter)
Parameters
Type Name Description
IPFilterInfo ipFilter

The informations about the IP filter to add.

Returns
Type Description
System.Int32

The ID of the newly created integer.

| Improve this Doc View Source

CanIPStillAccess(String, IList<IPFilterInfo>)

Gets a value indicating whether an IP address has access.

Declaration
bool CanIPStillAccess(string myip, IList<IPFilterInfo> filterList)
Parameters
Type Name Description
System.String myip

The IP address to check.

IList<IPFilterInfo> filterList

A list of filters to check against.

Returns
Type Description
System.Boolean

A value indicating whether the IP is authorized.

| Improve this Doc View Source

DeleteIPFilter(IPFilterInfo)

Deletes an IP filter.

Declaration
void DeleteIPFilter(IPFilterInfo ipFilter)
Parameters
Type Name Description
IPFilterInfo ipFilter

The informations about the IP filter to delete.

| Improve this Doc View Source

GetIPFilter(Int32)

Gets a single IP filter.

Declaration
IPFilterInfo GetIPFilter(int ipFilter)
Parameters
Type Name Description
System.Int32 ipFilter

The ID of the IP filter to get.

Returns
Type Description
IPFilterInfo

IPFilterInfo.

| Improve this Doc View Source

GetIPFilters()

Gets all the IP filters.

Declaration
IList<IPFilterInfo> GetIPFilters()
Returns
Type Description
IList<IPFilterInfo>

A collection of IPFilterInfo.

| Improve this Doc View Source

IsAllowableDeny(String, IPFilterInfo)

Gets a value indicating whether an IP address can be denied.

Declaration
bool IsAllowableDeny(string ipAddress, IPFilterInfo ipFilter)
Parameters
Type Name Description
System.String ipAddress

The IP address to check.

IPFilterInfo ipFilter

The IP filter against which to check.

Returns
Type Description
System.Boolean

A value indicating whether the IP address can be denied.

| Improve this Doc View Source

IsIPAddressBanned(String)

Gets a value indicating whether a given IP address is banned.

Declaration
void IsIPAddressBanned(string ipAddress)
Parameters
Type Name Description
System.String ipAddress

A string representation of an IP address.

| Improve this Doc View Source

IsIPBanned(String)

Gets a value indicating whether a given IP address is banned.

Declaration
bool IsIPBanned(string ipAddress)
Parameters
Type Name Description
System.String ipAddress

A string representation of an IP address.

Returns
Type Description
System.Boolean

A value indicating wheter the provided IP address is banned.

| Improve this Doc View Source

UpdateIPFilter(IPFilterInfo)

Updates an existing IP filter.

Declaration
void UpdateIPFilter(IPFilterInfo ipFilter)
Parameters
Type Name Description
IPFilterInfo ipFilter

The informations about the IP filter to update.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS