Tomcat ServletFilter to reject request based on query parameter

This is useful if you have a web application developed by someone else. You want to restrict certain features, but you do not have access to the source code. In this article I am giving the source code for a ServletFilter to reject all requests containing a specific query parameter »