XF 1.5 Disallow links in custom user fields.

Mr Lucky

Well-known member
Does anyone know a way to do this? Maybe with an expression to match.

(I'm trying to deal with human spammers)

If so can you please tell me how to do it of if there is an addon.


Jake Bunce

XenForo moderator
Staff member
Use this for the regular expression for the custom field:

That will exclude all values containing 'http'.

Mr Lucky

Well-known member
Thanks Jake, that works well.

What would I put if I also want to disallow www, so they can't even have a link without the http?