You are here: Latin American iptables blocklist

Block Access to Your Web and Mail Servers, from South American IP traffic, with this Linux APF iptables Firewall Blocklist

The IP addresses and CIDR ranges in these blocklists are for use in Linux APF server firewalls, via included iptables.

Compiled by Wizcrafts Computer Services

Wiz Feinberg

While reading my raw access logs and the headers of incoming spam to my honeypot accounts, I have found that many email and access log spammers and server exploit attacks come from ISPs and servers based in South American countries, especially from botnets in Brazil. I have complied a list of IP CIDRs belonging South American countries, under the control of the LACNIC Registry and made them into this blocklist. Note, that this is a work in progress, which is added to as new spam header and access log data is analyzed.

Wizcrafts has been publishing .htaccess formatted IP blocklists (a.k.a. blacklists), for Apache-based websites, since 2005. They are used by many webmasters to deny access to spammers, scammers, scrapers, harvesters and server exploiters. Now, due to numerous requests, we are making the same IP blocklists available in a format suitable for use in many software and hardware firewalls, especially those running on Linux based operating systems. These are not advanced policy firewall rules, just straight, one-per-line IP addresses, or CIDRs, that are used in advanced policy firewalls (APF) as includes.

This page is not a tutorial in the use of iptables blocklists; there are plenty available on the 'Net (use the Google searchbox further down the page). The iptables blocklists below are for people who already know how to apply them to their servers, or firewalls. You must have Root access to the server to install these iptables blocklists. If you don't have root access, use our .htaccess blocklists instead.

The following is our South American iptables firewall blocklist. This will block all access to your server from any IP addresses within the CIDRs listed in the file. Copy, paste and save the blocklist as a plain ascii text file, usually named deny_hosts.rules, then upload it to your Linux server, typically to: "/etc/apf/deny_hosts.rules"   Every IP or CIDR listed in the file, one per line, is denied access by default. See How to install APF (Advanced Policy Firewall), for installation details.

There are links to our other iptables firewall blocklists here

To use iptables blocklists you must have a dedicated, or semi-dedicated, or VPS server, with root access to the server.

If you need hosting for your website, or websites, Check out Hostgator's Shared, VPS and dedicated server hosting plans. My link will save you up to 65% off your first term, whether it's a month, a year, or three years!

My cat, pleading for contributions to help finance my blocklist research
If you find these blocklists useful, please Donate to Wizcrafts. Contributions from people like you, who benefit from these blocklists, will enable this work to continue. We really can use your kind donations, in any amount!

File download tools (e.g., Wget, curl, csf, etc) have taken a toll on my bandwidth with no financial compensation. So, as of January 2, 2019, all iptables blocklists are inside zip files to conserve bandwidth on my hosting account. The zip files will be updated if I find new IP addresses to block. Otherwise, consider them archived.

Download this iptables blocklist in a .zip file.

To use iptables blocklists you must have a dedicated, or semi-dedicated, or VPS server, with root access to the server. Check out Hostgator's Shared, VPS and dedicated server hosting plans

My cat, pleading for contributions to help finance my blocklist research
If you find these blocklists useful, please Donate to Wizcrafts. Contributions from people like you, who benefit from these blocklists, will enable this work to continue. We really can use your kind donations, in any amount!

Want to download this iptables blocklist as a separate plain text file, but without any ads, nags, HTML, or zip file? If you have a static IP, I can provide direct access to my blocklists in iptables format, ready to be imported into your APF rules. Wget is allowed for downloading my blocklists. Contact me via my Webmaster inquiries form with your details and the IP address where you will be downloading the blocklist from. I will setup direct access to the iptables text file for a one time fee of $106.00, payable via PayPal. Note that direct access is tied to a fixed ip address. If your ip address will be changing let me know in advance.

For webmasters lacking root access to their servers, like shared hosting accounts, we publish .htaccess format blocklists for use on individual Apache-based websites. All you require is FTP or file manager upload access and the ability to unhide and edit your .htaccess file, with "Mod_Access" or "Mod_Authz" Overrides allowed. Learn about our .htaccess blocklists here.


Mailwasher Pro If you are tired of receiving spam, viruses and Phishing schemes in your personal computer's email inbox, why not give Mailwasher Pro a try? Mailwasher Pro is a program that intercepts and analyzes incoming email before it is delivered to your IncrediMail, Microsoft Outlook, Windows Live Mail, Thunderbird, or an equivilant email client's inbox. Mailwasher uses a combination of Bayesian Learning Filters, a user controlled Whitelist and Blacklist, user created filters and rules, including regular expressions rules, DNS Blocklists like the Spamcop SBL, and the FirstAlert! Database of known spam as identified and reported by other Mailwasher Pro users around the World, to identify and deal with spam, scams, schemes and viruses. More details about MailWasher Pro.


This blocklist is compiled and maintained by Wizcrafts Computer Services. © 2006 - 2025.
No warranties are implied or stated and we are not liable for any problems that may arise from it's use. Use it at your own risk!
Wizcrafts does not provide any blocking services, nor do we know who is using our blocklists.
Contact us here if you wish to contribute new IP addresses.
This web page contains affiliate advertising links to third party companies, products, services and ad networks. I may receive commissions for sales or referrals to these third party websites to help cover my costs.

This page was last updated on: Tuesday, 28-Feb-2023 15:01:52 CST