• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: What's the best way to reject Russian characters

What's the best way to reject Russian characters 4 years 3 months ago #40931

  • duncan
  • duncan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 1
Hi,

I have a form with a text field that regularly gets filled out in russian - it's spam basically.

So, I'm trying to work out which is the best way to reject the form if this happens.

My main question is, is it best to do this via a script or use regex as a validation rule?

Either way, I could do with some advice or pointers to setting either up.

In particular I was looking at the Regex validation. When I select this for the text field - the Regex syntax is shown. The field currently has this in it:
{"custom":" ~ ! @ # $ % ^ & * ( ) _ ` - = + ? : ' \" , ."}

My basic question is (and probably really obvious if you know anything about regex), does the form get rejected if the above characters are entered, or are these characters that are allowed?

The next question, which is probably more technical, is I have seen some expressions that start and end with # and use ( ) and [ ] within the expression, eg #([0-9])#. The above only uses { }. What is the difference with these types of expressions

Any help or advice greatly appreciated.

Kind Regards

Duncan
Last Edit: 4 years 3 months ago by duncan.
The administrator has disabled public write access.
The following user(s) said Thank You: jan007
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!