Isn't there the same possibility with any form on a website such as contact us, etc.?

Is there a way to prevent that - such as entering a code displayed on the page, etc.?