Skip to main content
OCLC Support

IncludeIP

Learn how to use the IncludeIP config.txt directive to interact with other directives in EZproxy.

IncludeIP (also written as I) is a position-dependent config.txt directive that interacts with AutoLoginIP and ExcludeIP directive, database definitions, and other IncludeIP directives.

IncludeIP is used to identify computers that have IP addresses that are not known by your database vendors and thus do need to be proxied. It accepts a single parameter that is either an IP address or an IP address range.

The top of the config.txt file can be considered to start with an implicit that indicates that all users should be required to log in before gaining access to databases. This implicit behavior is modified by the presence of AutoLoginIP, ExcludeIP and IncludeIP directives.

IncludeIP 0.0.0.0-255.255.255.255

The most frequent use of IncludeIP is to identify local computers that should be treated as remote computers for testing. The next most frequent use is to reverse all prior AutoLoginIP and ExcludeIP directives.

CIDR Notation

Starting with EZproxy V6.3, IncludeIP accepts IP address ranges in CIDR notation. For example:

IncludeIP 192.168.0.0/16

Example

In this example, all machines in the IP address range of 192.168.0.0-192.168.255.255 are known to the vendor and can bypass EZproxy, but 192.168.12.1 requires the user to log in for testing purposes.

ExcludeIP 192.168.0.0-192.168.255.255
IncludeIP 192.168.12.1
Title Some Database
URL http://www.somedb.com/
D somedb.com
Title Other Database
URL http://www.otherdb.com/
D otherdb.com

Directivas relacionadas 

 AutoLoginIP, ExcludeIP, RejectIP