Difference between revisions of "Spam"

From C4 Wiki
Jump to: navigation, search
m
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Spam/IP Blocks]]
+
== Spam, Spam, Spam ==
  
= IP Blocks =
+
* [[Special:Ipblocklist|Our list of blocked ip ranges]]
IP Blocks haben sich als einigermassen effektiv gegen Spammer erwiesen.
+
* [[C4SpamBlacklist|Our list of blocked links]]
  
Folgendes Skript erleichtert die Einrichtung von IP Range Blocks.
+
* [[Spam/IP Blocks|Help on ip range blocks]]
#!/usr/bin/perl -w
 
# description: generate mediawiki ipblock entries for ipranges
 
# 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";
 
    }
 
}
 
  
 +
== Mediawiki Anti Spam ==
 +
* [https://www.mediawiki.org/wiki/Manual:Combating_spam Mediawiki Anti-spam features]
 +
* http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Administration#Reversion
  
Benutzen:
+
 
whois 221.194.75.8 | perl ~/whois2iprange.pl
+
== Read more on Mediawiki Bots, Tools and Extensions ==
 +
* 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]]
 
[[Category:Infos]]

Latest revision as of 19:37, 26 October 2017