Does anyone know how I can detect whether a user has inserted a website link in the revision of the text that was submitted? I know how to check their age. My idea for this extension it: If a new user submits a link, they'll be asked to instead use the talk page.
You can run all edits through a regular expression to check for this exact type of thing http://www.mediawiki.org/wiki/Manual:$wgSpamRegex
I used this on a site of mine to see if a user inserted 10 or more links - Just place in local settings $wgSpamRegex = '/([http://[a-z0-9./%_-]+(\s+[a-z0-9.-]+)+]\s+){10}/i';
On Jun 18, 2011, at 3:04 PM, Eric K wrote:
Does anyone know how I can detect whether a user has inserted a website link in the revision of the text that was submitted? I know how to check their age. My idea for this extension it: If a new user submits a link, they'll be asked to instead use the talk page. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Eric K wrote:
Does anyone know how I can detect whether a user has inserted a website link in the revision of the text that was submitted? I know how to check their age. My idea for this extension it: If a new user submits a link, they'll be asked to instead use the talk page.
You can configure AbuseFilter for that, or use ConfirmEdit to force them solve a captcha when adding links.
Thank you both. I had forgotten about the configuration settings for Confirm Edit which I do have installed.They also had the code for "check for new links", so I'll look at it if I go that route. For now I just changed the capctcha to a slightly more difficult one, in ConfirmEdit.
--- On Sat, 6/18/11, Platonides Platonides@gmail.com wrote:
From: Platonides Platonides@gmail.com Subject: Re: [Mediawiki-l] Simple anti-spam check? To: mediawiki-l@lists.wikimedia.org Date: Saturday, June 18, 2011, 6:05 PM
Eric K wrote:
Does anyone know how I can detect whether a user has inserted a website link in the revision of the text that was submitted? I know how to check their age. My idea for this extension it: If a new user submits a link, they'll be asked to instead use the talk page.
You can configure AbuseFilter for that, or use ConfirmEdit to force them solve a captcha when adding links.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Just a word of wisdom on the capchtas The reason they do not work 100% of the time is that the spam is not a bot, but an actual person doing this. Sometimes paid per broken captcha.
Making it hard enough to stop spam often means making it too hard for legitimate users as well. I for one have a very hard time with them. Often taking me 3-4 tries to get it right on the more complex ones.
On Jun 19, 2011, at 10:22 AM, Eric K wrote:
Thank you both. I had forgotten about the configuration settings for Confirm Edit which I do have installed.They also had the code for "check for new links", so I'll look at it if I go that route. For now I just changed the capctcha to a slightly more difficult one, in ConfirmEdit.
--- On Sat, 6/18/11, Platonides Platonides@gmail.com wrote:
From: Platonides Platonides@gmail.com Subject: Re: [Mediawiki-l] Simple anti-spam check? To: mediawiki-l@lists.wikimedia.org Date: Saturday, June 18, 2011, 6:05 PM
Eric K wrote:
Does anyone know how I can detect whether a user has inserted a website link in the revision of the text that was submitted? I know how to check their age. My idea for this extension it: If a new user submits a link, they'll be asked to instead use the talk page.
You can configure AbuseFilter for that, or use ConfirmEdit to force them solve a captcha when adding links.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org