The mgiAuthenticateDB Tag

AuthenticateIPOnly Mode

Return to the mgiAuthenticateDB Main Menu

Tag Syntax

The AuthenticateIPOnly mode of mgiAuthenticateDB has three required parameters and no optional parameters. The tag form is:

<mgiAuthenticateDB mode="AuthenticateIPOnly" 
allowedIP="IP Number" deniedIP="IP Number">

Required Parameters:

  • mode - The mode is the function that the mgiAuthenticateDB tag performs. In "authenticateIPOnly" mode, the mgiAuthenticateDB tag regulates access to the page containing the mgiAuthenticateDB tag by requiring the user to access the page from a specific IP number. The user is not required to have a valid username or password in "authenticateIPOnly" mode.
  • allowedIP - The allowedIP is the individual IP number, hostname, or the block of IP numbers or hostnames that are allowed to access the page with a valid username and password. For an individual IP number, the parameter value is the IP address. For multiple, individual IP numbers, include the allowedIP parameter multiple times within the mgiAuthenticateDB tag (e.g., allowedIP="63.45.215.48" allowedIP="208.196.25.1"). For a block of IP numbers or hostnames, use the asterisk (*) to represent a wildcard in any part of the IP number (e.g., allowedIP="201.199.24.*" or allowedIP="24.15.*.*"). This parameter may be specified multiple times. If one or more deniedIP parameters are provided, then the allowedIP parameter is not required.
  • deniedIP - The deniedIP is the individual IP number, hostname, or block of IP numbers or hostnames that are not allowed to access the page even if they have a valid username and password. For an individual IP number, the parameter value is the IP address. For multiple, individual IP numbers, include the deniedIP parameter multiple times within the mgiAuthenticateDB tag (e.g., deniedIP="155.26.14.241" deniedIP="155.26.54.214"). For a block of IP numbers or hostnames, use the asterisk (*) to represent a wildcard in any part of the IP number (e.g., deniedIP="213.14.144.*" or deniedIP="24.15.*.*"). This parameter may be specified multiple times. If one or more allowedIP parameters are provided, then the deniedIP parameter is not required.

Optional Parameters:

  • None.


Example Usage and Output

<mgiAuthenticateDB mode="AuthenticateIPOnly" 
allowedIP="208.63.25*" deniedIP="206.63.*.*">

In this example, users accessing the page from the 208.63.25 IP block can access the page, but users accessing the page from any other part of the 206.63 IP block are not granted access.

Return to the mgiAuthenticateDB Main Menu


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]