1. 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.

Discussion in 'XenForo Questions and Support' started by Mr Lucky, Sep 27, 2015.

Tags:
  1. Mr Lucky

    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.

    Thanks
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this for the regular expression for the custom field:

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

    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?

    Thanks.
     

Share This Page