I want to give read-write access only to my local network (ip range) and read access to other ip , but i do not now how to do it and if is possible.
I want to modify this lua script, that i use to give access to one ip.
function IncomingHttpRequestFilter(method, uri, ip, username, httpHeaders)
if method
method == 'GET'
then
-- Read-only access (only GET method is allowed)
return true
elseif username == 'admin' and ip == 'add-your-ip-address-here' ( i want to give my local ip range )
then
-- Read-write access for administrator (any HTTP method is allowed on localhost)
return true
else
-- Access is disallowed by default
return false
end
many thanks,
kyriacos