Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added script that can be used to delete a single url from the index call: bin/deleteurl.sh <url>
orbiterfabda9ad3168
diff --git a/bin/deleteurl.sh b/bin/deleteurl.shnew file mode 100755index 000000000..4820ac185--- /dev/null+++ b/bin/deleteurl.sh@@ -0,0 +1,3 @@+#!/bin/bash+cd "`dirname $0`"+./apicall.sh "/IndexControlURLs_p.html?urlhashdeleteall=&urlstring=$1" > /dev/nulldiff --git a/htroot/IndexControlURLs_p.java b/htroot/IndexControlURLs_p.javaindex 3ea3cb078..bd002dc17 100644--- a/htroot/IndexControlURLs_p.java+++ b/htroot/IndexControlURLs_p.java@@ -129,6 +129,12 @@ public class IndexControlURLs_p {// post values that are set on numerous input fields with same nameString urlstring = post.get("urlstring", "").trim();String urlhash = post.get("urlhash", "").trim();+ if (urlhash.length() == 0 && urlstring.length() > 0) {+ try {+ urlhash = ASCII.String(new DigestURI(urlstring, null).hash());+ } catch (final MalformedURLException e) {+ }+ }if (!urlstring.startsWith("http://") &&!urlstring.startsWith("https://") &&