Forum

Can Hiawatha read from file

Fred
3 June 2016, 13:21
Hi Hugo,

I would like to whitelist a few IP address and I was wondering if hiawatha can read from file?
at the moment I have
set TrustedIP_1 = 84.27.xx.xxx
set TrustedIP_2 = 83.8.xx.xxx
set TrustedIP_3 = 10.8.30.15

LogfileMask = deny TrustedIP_1, deny TrustedIP_2, deny TrustedIP_3
RequestLimitMask = deny TrustedIP_1, deny TrustedIP_2, deny TrustedIP_3


It will be easier for me to manage the IPs from a file as my list get big sometime

Fred
Hugo Leisink
4 June 2016, 14:51
Reading a list of IP's from a file is not supported. You can of course have a list of IP's in a file, use a script to convert it to Hiawatha configuration syntax and use the Include statement to read it from the main Hiawatha configuration file.
This topic has been closed.