yacy_search_server/htroot/Blacklist_p.html

135 lines
6.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Blacklist Manager</title>
#%env/templates/metas.template%#
</head>
<body id="Blacklist">
#%env/templates/header.template%#
<h2>Blacklist</h2>
<p>Used Blacklist engine: <span class="settingsValue">#[blacklistEngine]#</span></p>
<p>
This function provides an URL filter to the proxy; any blacklisted URL is blocked
from being loaded. You can define several blacklists and activate them separately.
You may also provide your blacklist to other peers by sharing them; in return you may
collect blacklist entries from other peers.
</p>
<!-- blacklist selection -->
<form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Edit list:</legend>
<select name="selectedListName" size="1">
#{blackLists}#
<option value="#[name]#" #(selected)#::selected="selected"#(/selected)#>#[name]# [#(shared)#not shared::shared#(/shared)#] #{active}# #[blTypeName]##{/active}#</option>
#{/blackLists}#
</select>
<input type="submit" name="selectList" value="select" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
<fieldset>
<legend>New list:</legend>
<input type="text" name="newListName" />
<input type="submit" name="createNewList" value="create" />
</fieldset>
<h3>Active list: <em>#[currentBlacklist]#</em> #(disabled)#::<span class="error">No blacklist selected</span>#(/disabled)#</h3>
<fieldset>
<legend>Activate this list for ...</legend>
<dl>
#{currentActiveFor}#
<dt><label for="activateList4#[blTypeName]#">#[blTypeName]#</label></dt>
<dd>
<input type="checkbox" id="activateList4#[blTypeName]#" name="activateList4#[blTypeName]#" value="on" #(checked)#checked="checked"::#(/checked)# />
</dd>
#{/currentActiveFor}#
</dl>
<input type="submit" name="activateList" value="Enable/disable this list" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
<fieldset>
<input type="submit" name="shareList" value="Share/don't share this list" #(disabled)#::disabled="disabled"#(/disabled)# />
<input type="submit" name="deleteList" value="Delete this list" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<!-- Blacklist configuration -->
<form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
<fieldset>
<p>
These are the domain name / path patterns in this blacklist:<br />
You can select them here for deletion
</p>
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
<select name="selectedEntry" size="8">
<!--<option disabled>blocked Sites</option>-->
#{Itemlist}#
<option value="#[item]#">#[item]#</option>
#{/Itemlist}#
</select>
<br />
<input type="submit" name="deleteBlacklistEntry" value="Delete URL pattern" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<form action="Blacklist_p.html" method="post" enctype="multipart/form-data">
<fieldset>
<ul>
<li>domain/fullpath</li>
<li>domain/.* or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">regexpr</a></li>
<li>*.domain/.* or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">regexpr</a></li>
<li>domain.*/.* or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">regexpr</a></li>
<li>*.sub.domain/.* or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">regexpr</a></li>
<li>sub.domain.*/.* or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html">regexpr</a></li>
</ul>
<input type="text" name="newEntry" size="50" />
<input type="submit" name="addBlacklistEntry" value="Add URL pattern" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<!-- Blacklist import from other peer -->
<form action="sharedBlacklist_p.html" method="get">
<fieldset>
<legend>Import blacklist items from other YaCy peers:</legend>
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
Host: <select name="hash">
#{otherHosts}#
<option value="#[hash]#">#[name]#</option>
#{/otherHosts}#
</select>
<br />
<input type="submit" value="Load new blacklist items" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<!-- blacklist import from url -->
<form action="sharedBlacklist_p.html" method="get">
<fieldset>
<legend>Import blacklist items from URL:</legend>
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
URL: <input type="text" name="url" /><br />
<input type="submit" value="Load new blacklist items" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<!-- blacklist import from file -->
<form action="sharedBlacklist_p.html" method="get">
<fieldset>
<legend>Import blacklist items from file:</legend>
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
File: <input type="text" name="file" />
<input type="submit" value="Load new blacklist items" #(disabled)#::disabled="disabled"#(/disabled)# />
</fieldset>
</form>
<p>
#(status)# <!-- 0: -->
::
<strong>#[item]#</strong> was removed from blacklist
::
<strong>#[item]#</strong> was added to the blacklist
#(/status)#
</p>
#%env/templates/footer.template%#
</body>
</html>