You can create a file in
ftphosts to allow or deny specific users or addresses from connecting to the FTP server. The format of the file is the word
deny, optionally followed by a username, followed by an IP or a DNS address:
allow username addressdeny username address
Listing 26.2 shows a sample configuration of this file.
# Example host access file## Everything after a '#' is treated as comment,# empty lines are ignoredallow fatima 188.8.131.52 184.108.40.206 220.127.116.11deny richard 18.104.22.168allow jane ubuntuforums.orgdeny john naughtysite.netallow ahmed ...