The middleware function takes the following arguments:
http.createServerfunction, with added functionalities
next, which might get executed when everything in the current middleware is done so that the following middleware in the stack can be invoked
The following is an example of a middleware that only allows the web application to be accessed by users that are inside the private network, based on their IP address. If a user has access, we will call the
next function; otherwise, ...