That code would go in this Custom Code text box: CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE: Add miscellaneous code here, click the Save Root Custom Code button, go to the Security Modes page, click the Create secure.htaccess File button and activate Root Folder BulletProof Mode again.
@icing – Example logic for blocking entire country IP addresses would be something this: if you only offer a product or service in a particular country and do not want visitor traffic from certain countries then yes it is fine to block them.
We have an ongoing scenario in our Forum site with Chinese spammers. Here are the details. We get 70-100 Chinese visitors counted by Google Analytics per month. Most of these Chinese visitors are probably spammers. The Forum site gets 30,000+ unique visitors per month. Originally we were dealing with 50,000+ Chinese spammers/spam commenters per month. That number is now down to 100 per month. Dealing with 50,000+ spam comments per month is time consuming. Dealing with 100 per month is insignificant.
So the bottom line in that scenario is how much time is it costing us to deal with Chinese spammers vs how much do we care about losing 100 maybe legitimate Chinese visitors to the Forum site. So far not a single person from China has complained that they were blocked from the Forum site so the assumption can be made that the 100 Chinese visitors are spammers.
This code is still experimental and the spammers are making adjustmemts and have found some loop holes, which we will decide what to do about blocking those loop holes.
The ideal goal is to minimize the time you spend on spammers.