You can check the client's IP address in your HTTPRequestHandlerFactory. The IP address of the client can be obtained by using the clientAddress() member function of HTTPServerRequest. You can then check the client address agains a list of addresses, or against a certain subnet. If the client address is valid, return a new request handler. Otherwise return 0.