Filter for Random/Possibly Malicious Submissions
I currently have a website already published and online with a contact form page, and for a while, I have been receiving submissions that only contain random strings of characters (such as "wneodsidhfnwekdi") and usually some suspicious URL. Is there some kind of filter I can write into the page to prevent submission of the form whenever there are non-word text in the form? The page is currently in html, but I am willing to convert to php if necessary.