2006-12-02 04:36:16 +00:00
< ? php
/*
2009-11-17 11:13:05 +00:00
* e107 website system
*
2009-11-18 01:06:08 +00:00
* Copyright ( C ) 2008 - 2009 e107 Inc ( e107 . org )
2009-11-17 11:13:05 +00:00
* Released under the terms and conditions of the
* GNU General Public License ( http :// www . gnu . org / licenses / gpl . txt )
*
*
*
* $Source : / cvs_backup / e107_0 . 8 / e107_languages / English / admin / help / banlist . php , v $
2010-02-10 18:18:01 +00:00
* $Revision $
* $Date $
* $Author $
2009-11-17 11:13:05 +00:00
*/
2006-12-02 04:36:16 +00:00
if ( ! defined ( 'e107_INIT' )) { exit ; }
$caption = " Banning users from your site " ;
2011-12-28 10:02:07 +00:00
if ( e_QUERY ) list ( $action , $junk ) = explode ( '-' , e_QUERY . '-' ); else $action = 'list' ; // Non-standard separator in query
2007-12-09 16:42:23 +00:00
switch ( $action )
{
2007-12-11 22:48:42 +00:00
case 'transfer' :
2011-12-28 10:02:07 +00:00
$text = 'This page allows you to transfer banlist data to and from this site as CSV (Comma Separated Variable) files.<br /><br />' ;
2007-12-11 22:48:42 +00:00
$text .= " <b>Data Export</b><br />
Select the types of ban to export . The fields will be delimited by the chosen separator , and optionally included within the selected quotation marks .< br />< br /> " ;
$text .= " <b>Data Import</b><br />
You can choose whether the imported bans replace existing imported bans , or whether they add to the list . If the imported data includes an expiry date / time , you
can select whether this is used , or whether the value for this site is used .< br />< br /> " ;
$text .= " <b>CSV Format</b><br />
The format of each line in the file is : IP / email , date , expiry , type , reason , notes .< br />
Date and expiry are in the format YYYYMMDD_HHMMDD , except that a zero value indicates 'unknown' or 'indefinite' < br />
Only the IP or email address is essential ; the other fields are imported if present .< br />< br />
2008-06-15 10:05:53 +00:00
< b > Note :</ b > You will need to modify filetypes . xml to allow admins to upload the 'CSV' file type . " ;
2007-12-11 22:48:42 +00:00
break ;
2008-01-27 18:52:18 +00:00
case 'times' :
2011-12-28 10:02:07 +00:00
$text = ' This page sets the default behaviour for various types of ban .< br />
If a message is specified , this will be shown to the user ( where appropriate ) . If the message starts with \ ' http :// \ ' or \ ' https :// \ ' control is
passed to the specified URL . Otherwise the user will most likely get a blank screen .< br />
The ban will be in force for the time specified ; after which it will be cleared next time they access the site . ' ;
2008-01-27 18:52:18 +00:00
break ;
case 'options' :
$text = ' < b > Reverse DNS </ b >< br />
If enabled , the user\ ' s IP address is looked up to obtain the associated domain name . This accesses an external server , so there may
be a delay before the information is available - and if the server is off - line , there may be a very long delay .< br />< br />
2008-06-15 10:05:53 +00:00
You can choose to look up server names on all site accesses , or only when adding a new ban .< br />< br />
2008-01-27 18:52:18 +00:00
< b > Maximum Access Rate </ b >< br />
This sets the maximum number of site accesses permitted from a single user or IP address in any five - minute period , and is intended
to detect denial of service attacks . At 90 % of the selected limit , the user receives a warning ; on reaching the limit they are banned .
Different thresholds may be set for guests and logged - in users .< br />< br />
< b > Retrigger Ban Period </ b >< br />
This option is only relevant if the option to ban users for a specified time , rather than indefinitely , has been used . If enabled , and
the user attempts to access the site , the ban period is extended ( as if the ban had just started ) .
' ;
2007-12-09 16:42:23 +00:00
break ;
case 'edit' :
case 'add' :
2006-12-02 04:36:16 +00:00
$text = " You can ban users from your site at this screen.<br />
Either enter their full IP address or use a wildcard to ban a range of IP addresses . You can also enter an email address to stop a user registering as a member on your site .< br />< br />
< b > Banning by IP address :</ b >< br />
Entering the IP address 123.123 . 123.123 will stop the user with that address visiting your site .< br />
2009-12-19 23:04:42 +00:00
Entering an IP address with one or more wildcards in the end blocks , such as 123.123 . 123. * or 214.098 .*.* , will stop anyone in that IP range from visiting your
site . ( Note that there must be exactly four groups of digits or asterisks ) < br />< br />
IPV6 format addresses are also supported , including '::' to represent a block of zero values . Each pair of digits in the end fields may be a separate wildcard < br />< br />
2006-12-02 04:36:16 +00:00
< b > Banning by email address </ b >< br />
Entering the email address foo @ bar . com will stop anyone using that email address from registering as a member on your site .< br />
2007-02-11 10:33:58 +00:00
Entering the email address *@ bar . com will stop anyone using that email domain from registering as a member on your site .< br />< br />
< b > Banning by user name </ b >< br />
2007-12-09 16:42:23 +00:00
This is done from the user administration page .< br />< br /> " ;
break ;
2007-12-16 11:14:53 +00:00
case 'whadd' :
case 'whedit' :
$text = " You can specify IP addresses which you know to be 'friendly' here - generally those for the main site admins, to guarantee that they can
always gain access to the site .< br />
You are advised to keep the number of addresses in this list to an absolute minimum ; both for security , and to minimise the impact on site performance . " ;
break ;
2011-12-28 10:02:07 +00:00
case 'banlog' :
$text = 'This shows a list of all site accesses involving an address which is in the ban list or the white list. The \'reason\' column shows the outcome.' ;
break ;
2007-12-16 11:14:53 +00:00
case 'white' :
$text = " This page shows a list of all IP addresses and email addresses which are explicitly permitted.<br />
This list takes priority over the ban list - it should not be possible for an address from this list to be banned .< br />
All addresses must be manually entered . " ;
break ;
2007-12-09 16:42:23 +00:00
case 'list' :
default :
2011-12-28 10:02:07 +00:00
$text = ' This page shows a list of all IP addresses , hostnames and email addresses which are banned .
2007-12-09 16:42:23 +00:00
( Banned users are shown on the user administration page ) < br />< br />
< b > Automatic Bans </ b >< br />
2014-05-29 13:50:28 -07:00
e107 automatically bans individual IP addresses if they attempt to flood the site , as well as addresses with failed logins .< br />
2007-12-09 16:42:23 +00:00
These bans also appear in this list . You can select ( on the options page ) what to do for each type of ban .< br />< br />
< b > Removing a ban </ b >< br />
You can set an expiry period for each type of ban , in which case the entry is removed once the ban period expires . Otherwise the
2011-12-28 10:02:07 +00:00
ban remains until you remove it .< br />
You can modify the ban period from this page - times are calculated from now . ' ;
2007-12-09 16:42:23 +00:00
}
2006-12-02 04:36:16 +00:00
$ns -> tablerender ( $caption , $text );