XF 2.1 Moderate member links

PrettyPixels

Well-known 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.
 
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.

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

Stops the rare human spammer and linkback ninny.
 
Last edited:
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 Bottom