Page tree
Skip to end of metadata
Go to start of metadata

This 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

Allow access from specific IPs
connectorIPFilter: ["172.16.0.128", "10.0.0.50"]
Allow access from entire subnet
  connectorIPFilter: function(ip) {
    
    if (ip.indexOf("192.168.1.") == 0)
	  return true;
    
  }
  • No labels