Java have a MIME type and the proxy can be used to block access based on Java MIME type.
Below is the CPL on how to block Java related MIME type.
The CPL below also block or deny access based on certain user group and apply to only certain URL domain.
<Proxy>
DENY condition=UserGroup_JavaMimeTypeBlock condition=JavaMimeTypeSites
define condition JavaMimeType
response.header.Content-Type="^application/x-javascript( | )*($|;)"
response.header.Content-Type="^application/x-java-archive( | )*($|;)"
response.header.Content-Type="^application/java-archive( | )*($|;)"
end
define condition URL_no_JavaMimeType
url.domain=//example.com/
end
define condition JavaMimeTypeSites
condition=URL_no_JavaMimeType condition=JavaMimeType
end
define condition UserGroup_JavaMimeTypeBlock
realm=IWA_realm_name group="AD_Domain_name\UserGroup_name"
end