XF 2.1 Moderate member links

PrettyPixels

Active member
Is it possible to hold posts or threads by new members in moderation if they contain one or more links? If so, how would I set this up?

Basically, I'd like to prevent people from signing up to spam our site.
 

Max Taxable

Well-known member
You can use the promotion system to moderate first X number of posts and when that figure is reached they are promoted to a usergroup you'll create that has default permissions. You would set the moderation for the 'registered' usergroup and not for the 'trusted' usergroup you'll create which they will graduate to automatically.

To stop them from registering though, you might like this addon I use.

 

Brogan

XenForo moderator
Staff member
Is it possible to hold posts or threads by new members in moderation if they contain one or more links?
Use the 'Maximum messages to check for spam' option and enter this in the 'Spam phrases' field:
Code:
/^\[url.*\[\/url\]$/si
/^http\S+$/si
/\[url=("|')?([^"'\]]+)("|')?\].*\[url\]\2\[/si
/\[url=("|')?([^"'\]]+)("|')?\].*\[url=("|')?\2("|')?\]/si
/^https?:\/\/\S+\n/si
 

Max Taxable

Well-known member
Use the 'Maximum messages to check for spam' option and enter this in the 'Spam phrases' field:
Code:
/^\[url.*\[\/url\]$/si
/^http\S+$/si
/\[url=("|')?([^"'\]]+)("|')?\].*\[url\]\2\[/si
/\[url=("|')?([^"'\]]+)("|')?\].*\[url=("|')?\2("|')?\]/si
/^https?:\/\/\S+\n/si
Heck Fire I use this myself on three xF sites I admin and forgot all about it: /https?:|www\./i

spamphrases.jpg

Stops the rare human spammer and linkback ninny.
 
Last edited:

Max Taxable

Well-known member
Additionally in order not to have a legit new member get annoyed and leave after his/her first post, I remove the notice telling them the post is awaiting approval.

Insert into the extra.less file:

CSS:
.messageNotice--moderated {
    display: none;
}

This also has the happy effect of the human spammer or linkback ninny thinking he accomplished his task, and leaving.
 
Top