How do I block a specific IP address in GlassFish?

"How do I block a specific IP address, so that none of the hosted sites can be viewed from this IP?"

This question was originally posed in this thread. Jan's answer:

Actually, we already support [allow|deny]Remote[Host|Address] as virtual server properties – see this documentation. These properties are used to configure and install the valve Jean-Francois has mentioned (in the thread).