To block a user in EZproxy you would add the IfUser condition in the user.txt (or the shibuser.txt if using SAML) to deny the user by using a line like this (replace userid with the identifier for that user):
IfUser userid; deny
The positioning of this can affect whether it works or not. If you need help or are a Hosted EZproxy then contact OCLC Support.