Code:
###
### this is the Hosts.Rules file for ioFTPD. it is used to control which
### ip addresses and hostnames have access to the server.
###
### by default, the server is configured to *only* allow connections from
### your computer. you should not change this until you have changed the
### master account password. see the file |README.1ST| for more
### information.
###
### this file is read from top to bottom, with the last matching rule
### being the one that applies to the connection. this means that more
### general rules will tend to be at the top of the file, with more
### specific rules matching later (lower).
###
## policy
##
## by default, we deny all incomming connections.
##
## format:
## POLICY ACCEPT CONNECTIONS_PER_IP
## POLICY ACCEPT
##
## once you have changed the master password (see README.1st) for your
## server, you should change your default policy from DENY to ACCEPT (by
## commenting out the DENY line and uncommenting the ACCEPT line) to allow
## connections from any ip address.
##
POLICY DENY
#POLICY ACCEPT 2
## classes
##
## -1 for total connections per class means unlimited.
##
## format:
## CLASS CLASS_NAME TOTAL_CONNECTIONS_PER_CLASS
##
CLASS ANONYMOUS 10
CLASS ADMIN -1
## rules
##
## rules determine which ip addresses can connect to your server.
##
## rules can be specified by ip address ('I') or hostname ('H').
## both the ip address and hostname can be partial addresses, for
## instance the class C block of '192.168.1.' or any '.com' address.
##
## format:
## ACCEPT I|H IP|HOSTNAME CLASS_NAME CONNECTIONS_PER_IP
## DENY I|H IP|HOSTNAME LOG_STRING
##
ACCEPT I 127.0.0.1 ADMIN -1
# examples
#ACCEPT I 10.0.0. ADMIN -1
#ACCEPT I 192.168.1. ADMIN -1
#ACCEPT I 127.0.0. ADMIN -1
#ACCEPT H .fi NORDIC 2
#ACCEPT H .se NORDIC 1
#ACCEPT H .no NORDIC 1
#DENY I 192.168. "Banned network address"
#DENY I 10. "Banned network address"
#DENY H .tw "Access from taiwan is prohibited"