Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added password check to url retrieval in FiewFile
orbiter8fa4a01c38b6
diff --git a/htroot/ViewFile.java b/htroot/ViewFile.javaindex 5077a0d06..c090bb06b 100644--- a/htroot/ViewFile.java+++ b/htroot/ViewFile.java@@ -130,6 +130,15 @@ public class ViewFile {// this can be used as a simple tool to test the text parserString urlString = post.get("url", "");if (urlString.length() > 0) try {+ // this call forces the peer to download web pages+ // it is therefore protected by the admin password++ if (!sb.verifyAuthentication(header, false)) {+ prop.put("AUTHENTICATE", "admin log-in"); // force log-in+ return prop;+ }++ // define an url by post parameterurl = new URL(urlString);} catch (MalformedURLException e) {}