]> git.donarmstrong.com Git - debbugs.git/commitdiff
ignore a few ips (probably blars)
authorDebian BTS <debbugs@spohr>
Tue, 12 Sep 2006 09:12:22 +0000 (02:12 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 1 Apr 2023 05:32:36 +0000 (22:32 -0700)
cgi/bugreport.cgi
cgi/pkgreport.cgi

index da790227c4be8266b88ead452442b958fe1086ac..26324c3e29c37adafd6dfc3d4e295851c701a3a4 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)/) {
+    print "Content-Type: text/html\n\nGo away.";
+    sleep(5);
+    exit 0;
+}
+
+
 
 use CGI::Simple;
 my $q = new CGI::Simple;
index abf739dec4c544f55dcfebb88b3c99d8ad78f245..3ce4332862dfe5de3a38bfee7536df19c19da026 100755 (executable)
@@ -56,6 +56,14 @@ my $default_params = {ordering => 'normal',
                      exclude      => [],
                     };
 
+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)/) {
+    sleep(5);
+    print "Content-Type: text/html\n\nGo away.";
+    exit 0;
+}
+
+
 our %param = cgi_parameters(query => $q,
                            single => [qw(ordering archive repeatmerged),
                                       qw(bug-rev pend-rev sev-rev),