HTML form pattern validation: block Russian alphabet

Fight the spam bots with modern HTML

Use HTML pattern attribute to help fight spam. If the Russians are spamming your contact forms, and you don't want to use Google reCAPTCHA... this is your solution! Just copy than paste the below input field and you are good to go.

<input pattern="[^aбвгдeёжзийклмнoпрстyфхцчшщъtыьpэюяайяйойейуйюй]+" oninvalid="this.setCustomValidity('Sorry. Russian characters are not allowed.')" oninput="setCustomValidity('')" type="text" name="subject" id="" value="" class="" placeholder="" />
  • This is the fastest, cleanest and best way to disable and stop spam from Russian bots
  • HTML input pattern Attribute
  • The Russian alphabet consists of 33 letters divided into 10 vowels, 21 consonants and 2 letters which do not designate any sounds. Each letter can be either capital or small.