You are not logged in.

#1 2013-11-25 10:41 pm

earlsoft
Member
Registered: 2013-04-21
Posts: 15

Mediawiki extension

Hi all.

After trying out the CheckSpambots mediawiki extension and finding it utterly broken (in too many ways to consider fixing it) I decided to write a dedicated StopForumSpam checking extension that actually works:
http://code.earlsoft.co.uk/hg/mediawiki_stopforumspam/

Does anyone have any comments on it so far?
If anyone wants to try it, feel free smile

I will be adding the ability to submit spam data on a near future version.

Thanks

Offline

#2 2013-11-25 11:54 pm

Papa Parrot
Member
From: Mexico
Registered: 2011-08-19
Posts: 1,826
Website

Re: Mediawiki extension

A few years ago I had tried mediawiki,...and boy was that ever a mistake, it got completely flooded with spam, and spammers,...I ended up removing  it entirely from my site,..
So any thing that might help make mediawiki more spam proof sounds good to me, thank you for sharing this.
I looked at the mercurial, site where your link goes to,and the files are. I do not know enough about php code, to say any thing, but  I think there will be some others that will be interested in this.
At this time I don't really have the time, to re-install media wiki, nor the desire,...so sorry , can't help much on testing or anything,.. If you want, you could post the code here too, that is up to you. Use the  BBcode to have it in a code "box".
welcome to the forum, and thanks for sharing this.

Offline

#3 2013-11-26 10:07 am

earlsoft
Member
Registered: 2013-04-21
Posts: 15

Re: Mediawiki extension

Wooo!

09:31, 26 November 2013 Account creation for Chubhtitiza was blocked as geazperas@web-mailz.com has 255 entries in the StopForumSpam blacklist 
09:27, 26 November 2013 Account creation for Szybkahticka was blocked as szybkainer@web-mailz.com has 255 entries in the StopForumSpam blacklist 
09:19, 26 November 2013 Account creation for Hipizgeadr was blocked as 89.76.248.179 has 5 entries in the StopForumSpam blacklist 
07:27, 26 November 2013 Account creation for Chubhtitiza was blocked as geazperas@web-mailz.com has 255 entries in the StopForumSpam blacklist 
05:31, 26 November 2013 Account creation for AnnisShakespear was blocked as 91.236.74.119 has 255 entries in the StopForumSpam blacklist 
05:13, 26 November 2013 Account creation for MohammedPartee was blocked as chanceroot0@hotmail.com has 82 entries in the StopForumSpam blacklist

Not sure why some of the values seem to have been capped though...

Offline

#4 2013-11-26 10:12 am

earlsoft
Member
Registered: 2013-04-21
Posts: 15

Re: Mediawiki extension

earlsoft wrote:

Not sure why some of the values seem to have been capped though...

It seems to be API side so not my problem smile

http://www.stopforumspam.com/api?ip=91.236.74.119&email=geazperas@web-mailz.com&f=xmldom

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <success>1</success>
  <ip>
    <lastseen>2013-11-26 10:10:26</lastseen>
    <frequency>255</frequency>
    <appears>1</appears>
    <confidence>99.95</confidence>
  </ip>
  <email>
    <lastseen>2013-11-26 10:10:26</lastseen>
    <frequency>255</frequency>
    <appears>1</appears>
    <confidence>99.95</confidence>
  </email>
</root>

Offline

#5 2013-11-26 10:27 am

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,056

Re: Mediawiki extension

255 entries is a wildcard value for a blacklisted entry.  ie a blocked IP subnet, banned email domain

Offline

#6 2013-11-26 10:48 am

earlsoft
Member
Registered: 2013-04-21
Posts: 15

Re: Mediawiki extension

Ahh ok, thanks.

Offline

#7 2013-11-26 4:00 pm

earlsoft
Member
Registered: 2013-04-21
Posts: 15

Re: Mediawiki extension

Oh, and before I submit it to wikimedia, do any of the SFS team object to the extension being called "StopForumSpam"?
I can put a "..not affiliated with..." in the notes or change the name if you'd prefer?

Offline

#8 2013-11-26 10:00 pm

Alex Kemp
Moderator
From: Nottingham, England
Registered: 2009-12-02
Posts: 2,423
Website

Re: Mediawiki extension

We are not Microsoft, so you can call it what you like! However, you are not affiliated with us, so simply make it obvious who wrote it (I always think that being positive is better than lots of `nots').

Offline

#9 2013-12-15 1:16 am

skizzerz
Member
Registered: 2013-12-15
Posts: 1

Re: Mediawiki extension

Hey, just to avoid duplicating effort, I wanted you to know that there is another StopForumSpam mediawiki extension. It looks like yours was around first, but we didn't notice it when making the repo in the official mediawiki repository.

I encourage you to look at what that extension is missing from yours and submit a patchset so that instead of having two different extensions that do mostly the same thing, there is just one that has the full featureset. You can find the extension page at https://www.mediawiki.org/wiki/Extension:StopForumSpam and more information on how to contribute at https://www.mediawiki.org/wiki/Gerrit/Tutorial. If you have any questions, feel free to ask here (I'm notified on new updates to this thread) or on my mediawiki.org user page at https://www.mediawiki.org/wiki/User_talk:Skizzerz.

Last edited by skizzerz (2013-12-15 1:18 am)

Offline

#10 2016-12-06 5:48 pm

openstackapps
Member
Registered: 2016-12-05
Posts: 2

Re: Mediawiki extension

Just curious with this extension there is a variable for the local location of the blacklist. Does that need to be kept up to date via some cron job?  or is it querying the API dynamically?

Offline

#11 2016-12-07 6:08 am

chrishirst
Member
From: Blackpool UK
Registered: 2011-01-22
Posts: 49
Website

Re: Mediawiki extension

it uses the API for which you need a valid passkey.

OR

you can download the IP lists and deploy them locally.

These details are on the MediaWiki document in the configuration and IP Blocking sections,


Indifference will be the downfall of mankind, .... But hey! Who cares.

Offline

#12 2016-12-09 5:30 pm

openstackapps
Member
Registered: 2016-12-05
Posts: 2

Re: Mediawiki extension

ok thanks - it wasn't clear if just one or both are needed.  So I have both:

$wgSFSAPIKey
$wgSFSIPListLocation

I can remove the IP List location and just rely on the API?

And in order to submit the IP of the spammer it seems I need the Check User extension installed correct?

Offline

Board footer

Powered by FluxBB

Close
Close