Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Info
titleThis configuration option was added in Profound.js 4.9.0.

Previous versions allow access to the Connector from any remote host. 

This option is used to control access to Connector APIs from remote hosts on a Profound.js instance installed on IBM i. By default, no access to Connector APIs is allowed from remote hosts. To allow access, this property can be set to an array of IP addresses to allow, or to a function that will be invoked before each request to check the IP address. The IP address for each request will be passed to the function. If the function returns Boolean true, the request will be allowed. Otherwise the request will be denied.

Examples

Code Block
languagejavascript
titleAllow access from specific IPs
connectorIPFilter: ["172.16.0.128", "10.0.0.50"]
Code Block
languagejavascript
titleAllow access from entire subnet
  connectorIPFilter: function(ip) {
    
    if (ip.indexOf("192.168.1.") == 0)
	  return true;
    
  }