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

XF 1.5 Block custom user fields

Solidus

Well-known member
#1
Hey.

I have 2 custom user fields set, and they appear during registration. Lately I've noticed that every single spam account puts the same word in these custom user fields.
Is there a way I can block these words?

Thank you.
 

Mike

XenForo developer
Staff member
#2
It would have to be a bit hacky using a regular expression to not match, but that's not ideal (and it'd take testing to ensure the correct regex was written). Alternatively, it could be done with a PHP callback for the value match requirements, but it would require some custom code to hook that up.