Max Characters in a rich text field for web

Can someone give me any suggestions how to limit a richtext field on the web to only accept 500 characters?

Thanks in advance