â€“> The -d flag means DENY the IP address
â€“> IP is the IP address you wish to block
â€“> Reason is comments to why the IP is being blocked
./apf -d 2126.96.36.199 TESTING
Shows the following:
# added 2188.8.131.52 on 08/23/05 01:25:55
B) pico /etc/apf/deny_hosts.rules
You can then just add a new line and enter the IP you wish to block. Before this becomes active though youâ€™ll need to reload the APF ruleset.