Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-233 resolved. Patch supplied by Stefan Groschupf. Thanks Stefan.

Dennis Kubesceffb1a62a66
diff --git a/conf/crawl-urlfilter.txt.template b/conf/crawl-urlfilter.txt.template
index f3a961093..c04d40db0 100644
--- a/conf/crawl-urlfilter.txt.template
+++ b/conf/crawl-urlfilter.txt.template
@@ -34,7 +34,7 @@
-[?*!@=]
# skip URLs with slash-delimited segment that repeats 3+ times, to break loops
--.*(/.+?)/.*?\1/.*?\1/
+-.*(/[^/]+)/[^/]+\1/[^/]+\1/
# accept hosts in MY.DOMAIN.NAME
+^http://([a-z0-9]*\.)*MY.DOMAIN.NAME/
diff --git a/conf/regex-urlfilter.txt.template b/conf/regex-urlfilter.txt.template
index 490274b94..fe566031c 100644
--- a/conf/regex-urlfilter.txt.template
+++ b/conf/regex-urlfilter.txt.template
@@ -32,7 +32,7 @@
-[?*!@=]
# skip URLs with slash-delimited segment that repeats 3+ times, to break loops
--.*(/.+?)/.*?\1/.*?\1/
+-.*(/[^/]+)/[^/]+\1/[^/]+\1/
# accept anything else
+.