Difference between revisions of "Spam"

From C4 Wiki
Jump to: navigation, search
m
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Warum gibt es Spam =
+
== Spam, Spam, Spam ==
  
 +
* [[Special:Ipblocklist|Our list of blocked ip ranges]]
 +
* [[C4SpamBlacklist|Our list of blocked links]]
  
= IP Blocks =
+
* [[Spam/IP Blocks|Help on ip range blocks]]
IP Blocks haben sich als einigermassen effektiv gegen Spammer erwiesen.
 
  
Folgendes Skript erleichtert die Einrichtung von IP Range Blocks.
+
== Mediawiki Anti Spam ==
#!/usr/bin/perl -w
+
* [https://www.mediawiki.org/wiki/Manual:Combating_spam Mediawiki Anti-spam features]
# description: generate mediawiki ipblock entries for ipranges
+
* http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Administration#Reversion
# usage: copy ips of all spammers from  'recent changes' (check entries with diff)
 
use POSIX qw(strftime);
 
# get netranges from whois output
 
while (<>)  {
 
    chomp;
 
    if (m/netname:/) {
 
        my $netname = $_;
 
        $netname =~ s/netname:\s*//;
 
        $names{$old} = $netname;
 
    }
 
    next unless $_ =~ m/inetnum:/;
 
    s/inetnum:\s*//;
 
    s/ //g;
 
    $seen{$_} = 1;
 
    $old = $_;
 
}
 
# let ipcalc calculate the range
 
foreach my $line (keys %seen) {
 
    my $out = `ipcalc $line`;
 
    my @ranges;
 
    foreach (split(/\n/,$out)) {
 
        next if m/deaggregate/;
 
        chomp;
 
        push @ranges, $_;
 
    }
 
    foreach my $r (@ranges) {
 
        print "http://wiki.koeln.ccc.de/index.php?title=Special:Blockip&ip=$r\n";
 
        my $start = strftime "%Y%m%d%H%M%S", localtime;
 
        print "INSERT INTO ipblocks VALUES ('','$r', 0, 2, 'SPAMMER $names{$line}','$start',0,''); \n";
 
    }
 
}
 
  
  
Benutzen:
+
== Read more on Mediawiki Bots, Tools and Extensions ==
whois 221.194.75.8 | perl ~/whois2iprange.pl
+
* http://meta.wikimedia.org/wiki/Category:MediaWiki_tools
 +
* http://www.csclub.uwaterloo.ca/~dawill03/cdvf/vf.jar
 +
* http://en.wikipedia.org/wiki/Wikipedia:Bots
 +
* http://en.wikipedia.org/wiki/User:CryptoDerk/CDVF
 +
* http://en.wikinews.org/wiki/User:Uncle_G%27s_%27bot
 +
* http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot
 +
* http://cvs.sourceforge.net/viewcvs.py/wikipedia/extensions/#dirlist
 +
 
 +
[[Category:Infos]]

Latest revision as of 19:37, 26 October 2017