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

XF 1.5 Disallow links in custom user fields.

Mr Lucky

Well-known member
#1
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.

Thanks
 

Jake Bunce

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

Code:
^((?!http).)*$
That will exclude all values containing 'http'.
 

Mr Lucky

Well-known member
#3
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?

Thanks.