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 SourceAddIPFilter(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. |
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. |
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. |
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 |
GetIPFilters()
Gets all the IP filters.
Declaration
IList<IPFilterInfo> GetIPFilters()
Returns
Type | Description |
---|---|
IList<IPFilterInfo> | A collection of IPFilterInfo. |
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. |
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. |
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. |
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. |