Authorized for URLs

Does not stop certain spammers posting URLs - Authorized for URLs

Does not stop certain spammers posting URLs

by Wolfydragon » Thu Sep 28, 2017 8:43 am

I've got the latest version of this, but I woke up today to find that a brand new spammer had posted 14 URLs in their very first topic, without any other posts. I've got the permissions set up so Newly Registered Users should not be able to do that at all, but they did. All of the URLs were .com and .co.uk so I know that they are banned. And yet, the forum allowed them and parsed the URLs into links. They are also posting them in signatures, despite that not being allowed either!

Can anyone help? :shock:
Wolfydragon
Registered User
Posts: 9
Joined: Sat Sep 23, 2017 3:16 pm
Contact:

Re: Does not stop certain spammers posting URLs

by RMcGirr83 » Thu Sep 28, 2017 10:27 am

Check the permissions of the user using the permissions mask
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Does not stop certain spammers posting URLs

by phil_highrez » Sat Aug 04, 2018 11:30 am

I've had similar problems, and I noticed its because the TLD was not in the TLD list.
Now we have seemingly completely random TLD's allowed by ICAN, this TLD list becomes a little less useful
Could we not just recognize anything with http:// or https:// here instead?

Or can we have an up to date list of all known TLDs (I think this may be difficult)
phil_highrez
Registered User
Posts: 3
Joined: Sat Aug 04, 2018 11:24 am
Contact:

Re: Does not stop certain spammers posting URLs

by WWu777 » Thu Aug 16, 2018 2:11 pm

You should also put new users on moderation queue. So they have to make x amount of posts before they can post unmoderated. I set that to 3 posts before they are out of the newly registered users group.
WWu777
Registered User
Posts: 802
Joined: Tue Aug 14, 2007 12:40 pm
Contact:

Re: Does not stop certain spammers posting URLs

by RMcGirr83 » Fri Aug 17, 2018 10:35 am

phil_highrez wrote:Or can we have an up to date list of all known TLDs (I think this may be difficult)
Not my job to supply you with tld lists.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Does not stop certain spammers posting URLs

by stuner » Sun Jan 06, 2019 1:28 pm

Thanks for writing this extension!

I also ran into some trouble with the new TLDs. Instead of adding every single one of those, I slightly modified the regex that blocks the URLs. I changed 201 of event/listener.php to:

Code: Select all

preg_match("#(\S*@\S+|(((?:www.)?\b[a-z0-9\-_]+)\.($disallowed_tld)(\.($disallowed_tld))?\b)|([a-z]{3,6}:\/\/)\S*|www\S*)#i", $check_text, $match);
This is a more strict (likely to block) version of the original regex. It will block any text that fulfills on of the following criteria:
  • Contains an @
  • Contains .TLD, where TLD is a disallowed TLD
  • Contains www
  • Contains somthing of the form abc:// (like http://, https://, ftp://)
I hope this helps some of you fight back!
stuner
Registered User
Posts: 1
Joined: Sun Jan 06, 2019 1:21 pm
Contact:

Re: Does not stop certain spammers posting URLs

by php90 » Wed Nov 03, 2021 6:19 pm

WWu777 wrote:So they have to make x amount of posts before they can post unmoderated. .
How can you do that please ?
php90
Registered User
Posts: 16
Joined: Thu Jan 12, 2012 9:36 am
Contact: