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

HydraulicJack

Well-known member
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
 
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
 
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.
 
Top Bottom