Jump to content
Sign in to follow this  
Brian T

Can I limit characters in Customer's name?

Recommended Posts



I can't seem to get any of the ReCaptcha facilities to work but I'm getting "people" regularly signing up  with very long customer names (Names such as "Earn £1000s of dollars from workign from home etc etc", and I wondered if I could limit the number of characters in the first name and surname to potentially prevent these people from signing up - I've no idea what they are trying to achieve, as I delete them as soon as I see them.


Thanks :)

Share this post

Link to post
Share on other sites

Yes, yes, and no.

The registration form is under javascript control via the Validator plugin. One can create a rule that limits the length of the entry.

CubeCart includes a security token when web pages with a form is sent out to the browser. When CubeCart receives that form, a check is made for a current token in the form data. If it's not there, the data sent in is immediately discarded.

A study of web access logs shows that a robot will first request the page, obtain the security token, then makes a customized POST with whatever data it wants - bypassing any form element data entry controls put in place.

So, CubeCart also has a few rules to test the data submitted against and will send back error banners if any test fails.

Therefore, yes, more Validator rules can be made - assuming posting robots ever allow these rules, or reCaptcha tests, to get in their way; yes, more rules can be written into CubeCart; no, because... well, its all a game.

  • Thanks 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...