^((?!http).)*$
^(http|https)://
I'm already using those add-ons, but these are custom user fields so the add-ons don't help for that.Yes they are smart. What I mentioned above has stopped the less smart ones, but if they are smarter than you I suggest:
https://xenforo.com/community/resources/stophumanspam-anti-human-spam.1480/
https://xenforo.com/community/resources/foolbothoneypot-bot-killer-spam-combat.1085/
hopefully someone helpful who does will come along with something better.
This is what I have come up with so far:
^(?!.*(www|http|.com)).*$
^(?!.*(www|http|.com|.net|.org|.ru|.biz)).*$
^(?!.*(www|http|\.com|\.net|\.org|\.ru|\.biz)).*$
^(?>(?i)(?!www|http|\.com|\.net|\.org|\.biz|\.ru).)*$
The problem with this approach is that it does not inform users what they are doing wrong. They get a vague error about fields that they do not understand. Therefore a valid user does not know how to fix.
Another problem is that this does not only relate to new signups, but also affects valid users who edit their profile and find they cannot update their account for an unknown reason. Even if their profile fields already had an internal url (which happens a lot)
Example:Isn't the point that you don't want them to know what they are doing wrong?
Example:
Someone has been a contributing member of your forum for 5 years. In one of his profile fields there is a link to a thread he likes. This link has been there the entire time.
Then you add the above regex.
This valid member edits their profile and encounters a vague error which he doesnt understand. He cant save his profile anymore and doesn't know what to change.
The only thing he can do is leave your website. You lost a valid member.
I assume that is not your only field that spammers and legitimate members can add URLs to.
You are right that this could be used for fields that would never have an URL from valid users. Like the location field.
However, its not a solution for any other field that can get URLs from valid users. Like the 'about' field.
We use essential cookies to make this site work, and optional cookies to enhance your experience.