I was hoping to use Spam Regex to prevent users making ANY external links from MediaWiki
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
Suggestions?
PY
admin Yellowikis wrote:
I was hoping to use Spam Regex to prevent users making ANY external links from MediaWiki
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
That's my problem... to block links with single "[" yet allow "[[".
Maybe Spam Regex isn't the way to go. Is there another way to block all external links?
PY
On 10/15/06, Timwi timwi@gmx.net wrote:
admin Yellowikis wrote:
I was hoping to use Spam Regex to prevent users making ANY external links from MediaWiki
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Maybe Spam Regex isn't the way to go. Is there another way to block all external links?
The spam blacklist extension only blocks external links (not internal wiki links) that match an expression on the blacklist, so you could install that and then put .* on your blacklist.
http://meta.wikimedia.org/wiki/SpamBlacklist_extension
Angela.
admin Yellowikis wrote:
That's my problem... to block links with single "[" yet allow "[[".
What are you going to do about "diff" links, which are only expressible as URLs?
HTH HAND
Spam whitelist extension, perhaps? You could add your domain to the whitelist while everything else is blacklisted.
naconkantari
On 10/15/06, Phil Boswell phil.boswell@gmail.com wrote:
admin Yellowikis wrote:
That's my problem... to block links with single "[" yet allow "[[".
What are you going to do about "diff" links, which are only expressible as URLs?
HTH HAND
Phil
View this message in context: http://www.nabble.com/Spam-Regex-tf2446487.html#a6822016 Sent from the Wikipedia Developers mailing list archive at Nabble.com.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Thanks DaB - that works fine.
Phil: I'll have a look at the diff links - but i suspect they are not managed by LocalSettings
Angela: I will install the blacklist extension, it is clearly the right thing to do. But right now I just need a quick fix for a test wiki i am working on.
PY
On 10/15/06, DaB. wp@daniel.baur4.info wrote:
Hello,
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
Try "^[[^][]*]$". I test it on the shell, no garantie ;).
Sincerly, DaB.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
I should add the definitive version is:
#Block all external links: $wgSpamRegex = "/^[[^][]*]$/";
PY
On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
Thanks DaB - that works fine.
Phil: I'll have a look at the diff links - but i suspect they are not managed by LocalSettings
Angela: I will install the blacklist extension, it is clearly the right thing to do. But right now I just need a quick fix for a test wiki i am working on.
PY
On 10/15/06, DaB. wp@daniel.baur4.info wrote:
Hello,
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
Try "^[[^][]*]$". I test it on the shell, no garantie ;).
Sincerly, DaB.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
Hmmm...
I forgot that you can also make an ugly link using "http://fff.ooo.bar"
so:
#Block all external links: $wgSpamRegex = "/^http:|^[[^][]*]$/";
On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
I should add the definitive version is:
#Block all external links: $wgSpamRegex = "/^[[^][]*]$/";
PY
On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
Thanks DaB - that works fine.
Phil: I'll have a look at the diff links - but i suspect they are not managed by LocalSettings
Angela: I will install the blacklist extension, it is clearly the right thing to do. But right now I just need a quick fix for a test wiki i am working on.
PY
On 10/15/06, DaB. wp@daniel.baur4.info wrote:
Hello,
something like this:
#Block external links: $wgSpamRegex = "/[*.*]$/";
But I can't get it to work...
You realise that this regexp would match ALL links, including internal ones, images etc.?
Try "^[[^][]*]$". I test it on the shell, no garantie ;).
Sincerly, DaB.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
On 10/15/06, admin Yellowikis yellowikis@gmail.com wrote:
I should add the definitive version is:
#Block all external links: $wgSpamRegex = "/^[[^][]*]$/";
PY
I forgot that you can also make an ugly link using "http://fff.ooo.bar"
so:
#Block all external links: $wgSpamRegex = "/^http:|^[[^][]*]$/";
Does that $wgSpamRegex work?
With it in LocalSettings on r17002, I could not create this wiki page: ----------------------- [http://badsite.com/] -----------------------
However I could create this: -----------------------
[http://badsite.com/] ----------------------- ... and then MediaWiki strips out the blank line, giving exactly the same end result.
Here's another article I could create: ----------------------- ht<!-- -->tp://foo.bar/ https://foo.bar [[[http://fake.com/] {{Some_Template_That_Makes_Passed_Arg_Into_A_Link|foobar.com}} http://fake.com/ [http://test.com test] -----------------------
All the best, Nick.
On 10/16/06, Nick Jenkins nickpj@gmail.com wrote:
Here's another article I could create:
ht<!-- -->tp://foo.bar/
The newest version of the Spam Blacklist extension prevents spammers using that <!-- --> trick.
Angela.
This particular project is looking at the use of wikis to stimulate creative writing - it is a low traffic, low profile, experimental wiki running on a server in my spare bedroom. Blocking external links is more to do with positioning the wiki with regards to creating a certain kind of content rather than serious spam protection. Same idea with limiting article length (which is set at 8.25k (about 1500 words).
Once proof-of-concept is over I'll either move it onto a professionally managed server and install the Spam Blacklist extension or shut it down - we will see what happens.
FYI: the Spam Blacklist extension has completely changed the amount of spam that we get at Yellowikis. It is really impressive. So kudos goes to Tim S for that.
PY
On 10/16/06, Angela beesley@gmail.com wrote:
On 10/16/06, Nick Jenkins nickpj@gmail.com wrote:
Here's another article I could create:
ht<!-- -->tp://foo.bar/
The newest version of the Spam Blacklist extension prevents spammers using that <!-- --> trick.
Angela. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org