What are the system requirements for BlockHosts?

  1. Linux-like systems. Not usable on Microsoft Windows.
  2. Python 2.3 or later, with the optparse module.
  3. Primarily uses host control facility and related files such as hosts.access. If not using TCP/IP blocking (--iproute or --iptables options to blockhosts.py), then the extensions to the access control language as described in the man 5 hosts_options page are required, which allow use of :allow and :deny keywords. ["...extensions are turned on at program build time by building with -DPROCESS_OPTIONS..." for services like ssh, ftp, etc]
  4. If not using host control facilities (tcpd, hosts.access, etc),
    then there needs to be a way to trigger the run of blockhosts.py, or blockhosts.py should be run periodically using cron. Secondly, there must be some way to update a file to list the blocked ip (for example, hosts.access file, or Apache .htaccess file, etc). Alternately, all TCP/IP communication can be blocked by using the --iproute or --iptables options of blockhosts.py