blob: 58b4ebe716226c0008913213229144b5b9fc1e46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<!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 Import</title>
#%env/templates/metas.template%#
</head>
<body id="Blacklist">
#%env/templates/header.template%#
#%env/templates/submenuBlacklist.template%#
<h2>Blacklist Import</h2>
<p>Used Blacklist engine: <span class="settingsValue">#[blacklistEngine]#</span></p>
#(disabled)#
<fieldset class="importListItems">
<legend>Import blacklist items from...</legend>
<!-- Blacklist import from other peer -->
<form action="sharedBlacklist_p.html" method="get" accept-charset="UTF-8">
<fieldset>
<legend>other YaCy peers:</legend>
<select name="hash">
#{otherHosts}#
<option value="#[hash]#">#[name]#</option>
#{/otherHosts}#
</select>
<input type="submit" class="btn btn-primary" value="Load new blacklist items" />
</fieldset>
</form>
<!-- blacklist import from url -->
<form action="sharedBlacklist_p.html" method="get" accept-charset="UTF-8">
<fieldset>
<legend>URL:</legend>
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
<input type="text" name="url" />
<input type="submit" class="btn btn-primary" value="Load new blacklist items" />
</fieldset>
</form>
<!-- blacklist import from text file -->
<form action="sharedBlacklist_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<legend>plain text file:</legend>
Upload a regular text file which contains one blacklist entry per line.<br /><br />
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
<input type="hidden" name="type" value="plaintext" />
<input type="file" name="file" />
<input type="submit" class="btn btn-primary" value="Load new blacklist items" />
</fieldset>
</form>
<!-- blacklist import from xml file -->
<form action="sharedBlacklist_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<legend>XML file:</legend>
Upload an XML file which contains one or more blacklists.<br /><br />
<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#" />
<input type="hidden" name="type" value="xml" />
<input type="file" name="file" />
<input type="submit" class="btn btn-primary" value="Load new blacklist items" />
</fieldset>
</form>
</fieldset>::#(/disabled)#
<fieldset class="exportListItems">
<legend>Export blacklist items to...</legend>
<form action="api/blacklists_p.xml" method="get" accept-charset="UTF-8">
<fieldset>
<legend>XML file:</legend>
Here you can export a blacklist as an XML file. This file will contain additional
information about which cases a blacklist is activated for.<br /><br />
<select name="listname">
#{blackListNames}#
<option value="#[blackListName]#">#[blackListName]#</option>
#{/blackListNames}#
<option value="">all</option>
</select>
<input type="submit" class="btn btn-primary" value="Export list as XML" />
</fieldset>
</form>
<form action="api/blacklists_p.txt" method="get" accept-charset="UTF-8">
<fieldset>
<legend>plain text file:</legend>
Here you can export a blacklist as a regular text file with one blacklist entry per line.
This file will not contain any additional information.<br /><br />
<select name="listname">
#{blackListNames}#
<option value="#[blackListName]#">#[blackListName]#</option>
#{/blackListNames}#
<option value="">all</option>
</select>
<input type="hidden" name="col" value="black" />
<input type="submit" class="btn btn-primary" value="Export list as text" />
</fieldset>
</form>
</fieldset>
#%env/templates/footer.template%#
</body>
</html>
|