]> git.donarmstrong.com Git - debbugs.git/blobdiff - cgi/bugreport.cgi
add 70.70.91.207 to the ignores
[debbugs.git] / cgi / bugreport.cgi
index ed5f9be74703eb70fbf423952c1bc4df137e6ebc..5aecd33556e3388ebb6f751ef806f9a0e4e5c872 100755 (executable)
@@ -32,6 +32,14 @@ use Debbugs::Text qw(:templates);
 use URI::Escape qw(uri_escape_utf8);
 use List::AllUtils qw(max);
 
+if (defined $ENV{REMOTE_ADDR} and $ENV{REMOTE_ADDR} =~ /(?:218\.175\.56\.14|64\.126\
+.93\.93|72\.17\.168\.57|208\.138\.29\.104|66\.63\.250\.28|71\.70\.91\.207)/) {
+    print "Content-Type: text/html\n\nGo away.";
+    sleep(5);
+    exit 0;
+}
+
+
 
 use CGI::Simple;
 my $q = new CGI::Simple;
@@ -272,7 +280,7 @@ END
          next if not $boring and not $record->{type} eq $wanted_type and not $record_wanted_anyway and @records > 1;
          $seen_message_ids{$msg_id} = 1 if defined $msg_id;
           # skip spam messages if we're outputting more than one message
-          next if $multiple_messages and $bug->is_spam($msg_id);
+          next if $multiple_messages and $spam->is_spam($msg_id);
       my @lines;
       if ($record->{inner_file}) {
           push @lines, scalar $record->{fh}->getline;