This example will create a basic http express server, and automatically ban a user using a bad user-agent . This is a very light example, you can try to use other scopes, checking ip range banned ...