BitMiner - free and simple next generation Bitcoin mining software




Simple Tutorial to Banned Country IP Address With CSF

I just figure it out a simple way to banned country ip address using CSF.

If you are using a CSF you can edit your CSF config files like below :

Edit csf.conf

#vi /etc/csf.conf

Edit two letters country code in CC_DENY files.
Example : i want to banned US, ID, HK country

CC_Deny = US,ID,HK

If you want to banned others country.
You can take a look link below for the Country Code
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

After that restart CSF Services

#/etc/init.d/csf restart