source: spip-zone/_plugins_/_test_/honeypot/fonds/cfg_httpbl.html @ 15666

Last change on this file since 15666 was 15666, checked in by pierre.andrews@…, 13 years ago

introduction d'un systeme de cache.
les ips et leurs infos sont stoques dans une table de cache pour un temps minimum (defaut, 7jours), un job cron vide la table.
autres corrections mineures:

  • introduction du necessite pour spip 1.9.3 qui a besoin du plugin compat probablement (pas tester)
  • petit nettoyage de la config httpbl, on n'affiche les options de bloquage que si la clef est configuree.
File size: 11.4 KB
Line 
1<!-- titre=<:honeypothttpbl:cfg_titre:> -->
2<!-- descriptif=<:honeypothttpbl:cfg_descriptif:> -->
3[(#REM) nom=honeypot]
4[(#REM) casier=httpbl]
5[(#REM) icone=honeypot_24.png]
6[(#REM) onglet=non]
7[(#REM) liens*=honeypot]
8
9
10[(#REM)
11Plugin HoneyPot, configuration http:BL
12  Copyright (C) 2007 Pierre Andrews
13
14    This program is free software: you can redistribute it and/or modify
15    it under the terms of the GNU General Public License as published by
16    the Free Software Foundation, either version 3 of the License, or
17    (at your option) any later version.
18
19    This program is distributed in the hope that it will be useful,
20    but WITHOUT ANY WARRANTY; without even the implied warranty of
21    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22    GNU General Public License for more details.
23
24    You should have received a copy of the GNU General Public License
25    along with this program.  If not, see <http://www.gnu.org/licenses/>.
26]
27
28<form method="post">[(#ENV{_cfg_}|form_hidden)]
29
30<fieldset>
31<label for="hpfile"><:honeypothttpbl:cfg_apikey:></label>
32<input type="text" name="apikey" id="apykey" value="#ENV{apikey}" />
33</fieldset>
34
35<fieldset [(#ENV{apikey}|?{'',' '})style="display:none;"]>
36<legend><:honeypothttpbl:cfg_sivisiteur:></legend>
37<ul>
38
39<li>
40<label for="type0_filter"><:honeypothttpbl:type0:> :</label><br/>
41<select name="type0_filter" id="type0_filter">
42<option value="rien" [(#ENV{type0_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
43<option value="tohoneypot"  [(#ENV{type0_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
44<option value="cacheremail"  [(#ENV{type0_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
45<option value="cacherforum"  [(#ENV{type0_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
46<option value="cachertout"  [(#ENV{type0_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
47<option value="bloquer"  [(#ENV{type0_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
48</select>
49</li>
50
51
52<li>
53<label for="type1_filter"><:honeypothttpbl:type1:> :</label><br/>
54<select name="type1_filter" id="type1_filter">
55<option value="rien"  [(#ENV{type1_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
56<option value="tohoneypot"  [(#ENV{type1_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
57<option value="cacheremail"  [(#ENV{type1_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
58<option value="cacherforum"  [(#ENV{type1_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
59<option value="cachertout"  [(#ENV{type1_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
60<option value="bloquer"  [(#ENV{type1_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
61</select>
62<br/>
63<label for="type1_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type1_threat" id="type1_threat" value="[(#ENV{type1_threat,150}|min{255})]" maxlength="3" size="3"/>
64</li>
65
66<li>
67<label for="type2_filter"><:honeypothttpbl:type2:> :</label><br/>
68<select name="type2_filter" id="type2_filter">
69<option value="rien"  [(#ENV{type2_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
70<option value="tohoneypot"  [(#ENV{type2_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
71<option value="cacheremail"  [(#ENV{type2_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
72<option value="cacherforum"  [(#ENV{type2_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
73<option value="cachertout"  [(#ENV{type2_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
74<option value="bloquer"  [(#ENV{type2_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
75</select>
76<br/>
77<label for="type2_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type2_threat" id="type2_threat" value="[(#ENV{type2_threat,70}|min{255})]" maxlength="3" size="3"/>
78</li>
79
80<li>
81<label for="type3_filter"><:honeypothttpbl:type3:> :</label><br/>
82<select name="type3_filter" id="type3_filter">
83<option value="rien"  [(#ENV{type3_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
84<option value="tohoneypot"  [(#ENV{type3_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
85<option value="cacheremail"  [(#ENV{type3_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
86<option value="cacherforum"  [(#ENV{type3_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
87<option value="cachertout"  [(#ENV{type3_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
88<option value="bloquer"  [(#ENV{type3_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
89</select>
90<br/>
91<label for="type3_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type3_threat" id="type3_threat" value="[(#ENV{type3_threat,40}|min{255})]" maxlength="3" size="3"/>
92</li>
93
94<li>
95<label for="type4_filter"><:honeypothttpbl:type4:> :</label><br/>
96<select name="type4_filter" id="type4_filter">
97<option value="rien"  [(#ENV{type4_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
98<option value="tohoneypot"  [(#ENV{type4_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
99<option value="cacheremail"  [(#ENV{type4_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
100<option value="cacherforum"  [(#ENV{type4_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
101<option value="cachertout"  [(#ENV{type4_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
102<option value="bloquer"  [(#ENV{type4_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
103</select>
104<br/>
105<label for="type4_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type4_threat" id="type4_threat" value="[(#ENV{type4_threat,40}|min{255})]" maxlength="3" size="3"/>
106</li>
107
108<li>
109<label for="type5_filter"><:honeypothttpbl:type5:> :</label><br/>
110<select name="type5_filter" id="type5_filter">
111<option value="rien"  [(#ENV{type5_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
112<option value="tohoneypot"  [(#ENV{type5_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
113<option value="cacheremail"  [(#ENV{type5_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
114<option value="cacherforum"  [(#ENV{type5_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
115<option value="cachertout"  [(#ENV{type5_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
116<option value="bloquer"  [(#ENV{type5_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
117</select>
118<br/>
119<label for="type5_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type5_threat" id="type5_threat" value="[(#ENV{type5_threat,20}|min{255})]" maxlength="3" size="3"/>
120</li>
121
122<li>
123<label for="type6_filter"><:honeypothttpbl:type6:> :</label><br/>
124<select name="type6_filter" id="type6_filter">
125<option value="rien"  [(#ENV{type6_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
126<option value="tohoneypot"  [(#ENV{type6_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
127<option value="cacheremail"  [(#ENV{type6_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
128<option value="cacherforum"  [(#ENV{type6_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
129<option value="cachertout"  [(#ENV{type6_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
130<option value="bloquer"  [(#ENV{type6_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
131</select>
132<br/>
133<label for="type6_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type6_threat" id="type6_threat" value="[(#ENV{type6_threat,20}|min{255})]" maxlength="3" size="3"/>
134</li>
135
136<li>
137<label for="type7_filter"><:honeypothttpbl:type7:> :</label><br/>
138<select name="type7_filter" id="type7_filter">
139<option value="rien"  [(#ENV{type7_filter}|choixsiegal{rien,' ',''})  selected="selected"]><:honeypothttpbl:cfg_rien:></option>
140<option value="tohoneypot"  [(#ENV{type7_filter}|choixsiegal{tohoneypot,' ',''})  selected="selected"]><:honeypothttpbl:cfg_tohoneypot:></option>
141<option value="cacheremail"  [(#ENV{type7_filter}|choixsiegal{cacheremail,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacheremail:></option>
142<option value="cacherforum"  [(#ENV{type7_filter}|choixsiegal{cacherforum,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cacherforum:></option>
143<option value="cachertout"  [(#ENV{type7_filter}|choixsiegal{cachertout,' ',''})  selected="selected"]><:honeypothttpbl:cfg_cachertout:></option>
144<option value="bloquer"  [(#ENV{type7_filter}|choixsiegal{bloquer,' ',''})  selected="selected"]><:honeypothttpbl:cfg_bloquer:></option>
145</select>
146<br/>
147<label for="type7_threat"> <:honeypothttpbl:cfg_minthreat:></label><input type="text" name="type7_threat" id="type7_threat" value="[(#ENV{type7_threat,10}|min{255})]" maxlength="3" size="3"/>
148</li>
149</ul>
150
151</fieldset>
152
153<fieldset [(#ENV{apikey}|?{'',' '})style="display:none;"]>
154<legend><:honeypothttpbl:cfg_remplacement_email:></legend>
155<input type="text" name="remplacement_email" id="remplacement_email" value="#ENV{remplacement_email,NOSPAM}"/>
156</fieldset>
157
158<fieldset [(#ENV{apikey}|?{'',' '})style="display:none;"]>
159<legend><:honeypothttpbl:cfg_log:></legend>
160<select name="loglevel">
161<option value="all" [(#ENV{loglevel}|choixsiegal{all,' ',''})  selected="selected"]><:honeypothttpbl:cfg_log_all:></option>
162<option value="blocked" [(#ENV{loglevel,blocked}|choixsiegal{blocked,' ',''})  selected="selected"]><:honeypothttpbl:cfg_log_blocked:></option>
163</select>
164</fieldset>
165
166<fieldset [(#ENV{apikey}|?{'',' '})style="display:none;"]>
167<legend><:honeypothttpbl:cfg_cache:></legend>
168<label for="cache"><:honeypothttpbl:cfg_cache_doc:></label><br/>
169<input type="text" name="cache" id="cache" value="#ENV{cache,7}"/> <:jours:>
170</fieldset>
171
172<input type="submit" name="_cfg_ok" value="<:OK:>" />
173<input type="submit" name="_cfg_delete" value="<:Supprimer:>" />
174
175</form>
Note: See TracBrowser for help on using the repository browser.