Block Tor IP Addresses with CSF Firewall

To block traffic from TOR using CSF firewall, edit

Add following to end of the file

86400 = Tor IP list updated every 86400 seconds (12 hours), you can change this if required, but updating every 12 hours is fine for such a large list.

Now restart CSF and LFD

You can verify IPs get added to firewall by running

You wills see DROP lines for each of the TOR IP address.

You will be able to see the downloaded TOR IP list at


Block Tor IP Addresses