I want to restrict users, if they try to submit a comment like "hjshssjdh", how can I restrict them
I tried many ways but still didn't find a solution, please provide me a solution, how to restrict users so that the server does not accept this type of messages, please write a meaningful comment
I think you can use Google reCAPTCHA as a robust solution.
Check its documentation herehere.
If this is not what you need, please let me know.