added: IP ban mechanism (not finished yet -- we need a winix function to remove a ban)
now after some incorrent login attempts your IP can be banned or blocked
(see new config variables)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@902 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
42
html/fun_ipban.html
Normal file
42
html/fun_ipban.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<div class="winix">
|
||||
|
||||
<h1>IP Banned</h1>
|
||||
|
||||
[if ipban_tab]
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>IP address</th>
|
||||
<th>login failures</th>
|
||||
<th>Login allowed</th>
|
||||
<th>Ban level</th>
|
||||
<th>Active flag</th>
|
||||
<th>Last used</th>
|
||||
<th>Expires</th>
|
||||
<th>Remove</th>
|
||||
</tr>
|
||||
|
||||
[for ipban_tab]
|
||||
|
||||
<tr>
|
||||
<td>[ipban_tab_id]</td>
|
||||
<td>[ipban_tab_ip]</td>
|
||||
<td>[ipban_tab_incorrect_login]</td>
|
||||
<td>[if ipban_tab_is_logging_allowed]yes[else]no[end]</td>
|
||||
<td>[ipban_tab_ban_level]</td>
|
||||
<td>[if ipban_tab_has_active_flag]yes[end]</td>
|
||||
<td>[ipban_tab_last_used]</td>
|
||||
<td>[ipban_tab_expires]</td>
|
||||
<td><a href="[doc_base_url][dir][if item_is][item_url]/[end]ipban/removeip:[ipban_tab_ip]">remove</a></td>
|
||||
</tr>
|
||||
|
||||
[end]
|
||||
</table>
|
||||
[else]
|
||||
<p>There are not any IP addresses banned at the moment.</p>
|
||||
[end]
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user