Is there a way to prevent very large downloads?

Say for example someone was downloading a 20MB file from your server and you did not want downloads larger than 120K

Does fail2ban have a filter for that?

Is there a way to do this ?

thx