[or-cvs] [metrics-web/master 3/3] Add exit lists to Data page.

karsten at torproject.org karsten at torproject.org
Sun Sep 19 12:11:01 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sun, 19 Sep 2010 14:10:38 +0200
Subject: Add exit lists to Data page.
Commit: 9b5f0da9d06aca6a04929400efe5dcc5387db3fb

---
 war/WEB-INF/templates/research_data.tpl.jsp |   29 ++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/war/WEB-INF/templates/research_data.tpl.jsp b/war/WEB-INF/templates/research_data.tpl.jsp
index da72f22..5c72f74 100644
--- a/war/WEB-INF/templates/research_data.tpl.jsp
+++ b/war/WEB-INF/templates/research_data.tpl.jsp
@@ -44,6 +44,7 @@
           <li><a href="#bridgedesc">Bridge descriptor archives</a></li>
           <li><a href="#stats">Statistics produced by relays</a></li>
           <li><a href="#performance">Performance data</a></li>
+          <li><a href="#exitlist">Exit lists</a></li>
         </ul>
         <br/>
         <a id="relaydesc"/>
@@ -211,7 +212,8 @@
           (filename.startsWith("buffer-") ||
           filename.startsWith("dirreq-") ||
           filename.startsWith("entry-") ||
-          filename.startsWith("exit-"))) {
+          (filename.startsWith("exit-") &&
+          !filename.startsWith("exit-list-")))) {
         statsSources.add(filename.substring(filename.indexOf("-") + 1));
       }
     }
@@ -292,3 +294,28 @@
     }
 %>
         </table>
+        <br/>
+        <a id="exitlist"/>
+        <h3>Exit lists</h3>
+        <br/>
+        <p>We are archiving the bulk exit lists used by
+        <a href="https://check.torproject.org/">Tor Check</a> containing
+        the IP addresses that exit relays exit from:</p>
+        <table width="100%" border="0" cellpadding="5" cellspacing="0" summary="">
+<%
+    for (Map.Entry<String, String> e : allFiles.entrySet()) {
+      String file = e.getKey();
+      String url = e.getValue();
+      if (file.startsWith("exit-list")) {
+        String yearMonth = file.substring(file.indexOf("exit-list-")
+            + "exit-list-".length());
+        String year = yearMonth.substring(0, 4);
+        String monthName = monthNames[Integer.parseInt(
+            yearMonth.substring(5, 7)) - 1];
+        out.write("          <tr><td><a href=\"" + url + "\">"
+            + monthName + " " + year + "</a></td></tr>\n");
+        printedFiles.add(file);
+      }
+    }
+%>
+        </table>
-- 
1.7.1



More information about the tor-commits mailing list