Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

RegEx, not Blacklist-style RegEx ;/

alloe24b54301e5b
diff --git a/htroot/CrawlStartExpert_p.html b/htroot/CrawlStartExpert_p.html
index 5066f61f6..f7e798c7c 100644
--- a/htroot/CrawlStartExpert_p.html
+++ b/htroot/CrawlStartExpert_p.html
@@ -73,7 +73,7 @@
<td><label for="crawlingFilter">Crawling Filter</label>:</td>
<td>
<input name="crawlingFilter" id="crawlingFilter" type="text" size="20" maxlength="100" value="#[crawlingFilter]#" />
- <input type="button" value="only one domain" onclick='var domain=prompt("please enter domain without \"www.\" (i.e. \"yacy.net\").");document.getElementById("crawlingFilter").value="*."+domain+"/.*"' />
+ <input type="button" value="only one domain" onclick='var domain=prompt("please enter domain without \"www.\" (i.e. \"yacy.net\").");document.getElementById("crawlingFilter").value=".*\."+domain.replace("\.", "\\.")+"/.*"' />
</td>
<td>
This is an emacs-like regular expression that must match with the URLs which are used to be crawled.