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 24.2 shows a sample configuration of this file.
# Example host access file## Everything after a '#' is treated as comment,# empty lines are ignoredallow fatima 22.214.171.124 126.96.36.199 188.8.131.52deny richard 184.108.40.206allow jane ubuntuforums.orgdeny john naughtysite.net allow ahmed 192.168.101.*allow ahmed ...