• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Need code format to accept PayPal order numbers but no other

HydraulicJack

Well-known member
#1
I've got a field created on the Preferences page in the admin area that requires the user to enter an order number that matches the format of PayPal order numbers but no other.

Could someone please let me know what that is at your earliest convenience? A spambot has found my site and I'm getting flooded with people just putting the string
order_number
in the Order Number field.

MANY thanks!
HJ
 

HydraulicJack

Well-known member
#3
This is an example:
9E419885GG442505M

I'm not sure all PayPal orders follow that exact combination of alphanumerics but we can start there since the spambot is at this point just filling that field with:
order_number
 

Brogan

XenForo moderator
Staff member
#4
Well you can use regex to limit to A to Z and numbers, like so ^[A-Z0-9]+$ but it won't stop the bots once they learn the new pattern.