I like the idea of this plugin. Not only for classic spammers reliant on backlinks / referrals, but also the admittedly grey area of new users 'poaching' on your board subject with backlinks to their sites. We get both, but since the anti-spam mechanisms work fairly well, the latter seems to be more of a problem.
Preliminary testing reveals an issue with protocol-less links. The plugin will intercept
https://google.com, but not
www.google.com. This seems consistent across post links, signatures, etc. - although haven't tested extensively. Because real people typically take typing shortcuts - this is a drawback for us.
I appreciate you can't trap everything, but having a common way to get around link restrictions reduces the benefit for an otherwise great idea and plugin.
cheers...
(2020-09-25, 11:14 PM)Crazycat Wrote: [ -> ]You're right, I used a basic way to detect urls, I'll enhance it to have the plugin detect url without scheme.
@nixer55 : you can try the new version of the plugin (https://gitlab.com/ab-plugins/abp-restri...icturl.php), I now use the 2 patterns from MyBB (from mycode_url_auto())
I'll check it out in my test system and post back. Took a quick look at the patterns - looks much more inclusive.
Nice work!
cheers...
Gone live with this plugin. Didn't test all capabilities, because we use built-in tools to handle some of them. Main thing was to deal with browser autolinks, which the last update does well. +1
cheers...
(2020-09-25, 11:14 PM)Crazycat Wrote: [ -> ]You're right, I used a basic way to detect urls, I'll enhance it to have the plugin detect url without scheme.
@nixer55 : you can try the new version of the plugin (https://gitlab.com/ab-plugins/abp-restri...icturl.php), I now use the 2 patterns from MyBB (from mycode_url_auto())
One issue came up on our live forum. Links created with mycode tags - [url= aren't blocked. So a spammer only has to use the Insert link function of the
browser editor to get around it.
Edit: Corrected browser to editor - my bad
cheers...
Oh oh... Did I forget to check the basic MyCode ? Probably...
I'll have a look on that tomorrow, and made a new version.
You're a star @Crazycat! Had never tested mycode links with the plugin, but should have.
Some spammers - like Amazon affiliates - tend to fly under the automated defences. But definitely want to drop backlinks.

I've changed two things in
this release:
- added a regexp to force the search of
[url]
tag
- corrected the existing regexp to remove a part which allowed starting post with an url
Limited testing, but early results look good. Definitely intercepting [url= links. Will upload to live forum and see how it goes.
cheers...