user agent filter now works with substrings
[mir.git] / source / mircoders / abuse / URLBlacklistFilterType.java
index 1bb8b03..74c1199 100644 (file)
@@ -75,16 +75,6 @@ public class URLBlacklistFilterType extends AbstractFilterType {
     };\r
   }\r
 \r
-  public static void main(String[] someArguments) {\r
-    HashSet set = new HashSet();\r
-    harvestURLDomains("[URL]https://www.nel9la41.org/informatica[/URL] [URL]http://www.ceud.org/liberi[/URL] [URL]http://www.e6tate.org/danni[/URL] [URL]http://www.e6tate.org/shakira[/URL] [URL]http://www.ceud.org/musica[/URL] [URL]http://www.nel9la41.org/troie[/URL] [URL]http://www.nel9la41.org/corriere-della-sera[/URL] [URL]http://www.e6tate.org/serie-a[/URL] [URL]http://www.nel9la41.org/calciomercato[/URL] [URL]http://www.e6tate.org/vita[/URL] [URL]http://www.e6tate.org/pene[/URL] [URL]http://www.e6tate.org/barzellette[/URL] [URL]http://www.ceud.org/pagine-bianche[/URL] [URL]http://www.e6tate.org/playboy[/URL] [URL]http://www.nel9la41.org/totti[/URL] [URL]http://www.e6tate.org/trenitalia[/URL] [URL]http://www.ceud.org/bambini[/URL] [URL]http://www.ceud.org/pornografia[/URL] [URL]http://www.e6tate.org/corriere-della-sera[/URL] [URL]http://www.nel9la41.org/musica[/URL] [URL]http://www.ceud.org/serie-a[/URL] [URL]http://www.nel9la41.org/barzellette[/URL] [URL]http://www.ceud.org/turismo[/URL] [URL]http://www.ceud.org/del-piero[/URL] [URL]http://www.nel9la41.org/calcio[/URL] [URL]http://www.nel9la41.org/google[/URL] [URL]http://www.e6tate.org/sesso[/URL] [URL]http://www.nel9la41.org/jesse-mccartney[/URL]", set);\r
-    Iterator i = set.iterator();\r
-    while (i.hasNext()) {\r
-      System.out.println(i.next());\r
-    }\r
-  }\r
-\r
-\r
   private static void harvestURLDomains(String someText, Set someResult) {\r
     Perl5Matcher matcher = new Perl5Matcher();\r
 \r
@@ -135,7 +125,6 @@ public class URLBlacklistFilterType extends AbstractFilterType {
     }\r
   }\r
 \r
-\r
   private Set whiteList;\r
 \r
   private static Pattern URL_EXPRESSION;\r