Blocking Countries: A Script for Keeping Your Clients Safe From Ddos and Hostile Traffic or Malware

With the developing war we are taking a bigger stance on country blocking for our clients. You can import this expression into your firewall or put into your cloud-flare firewall filters. Copy paste the expression, go to Cloudflare firewall rules/ create a new rule / country blocking/ edit expression / paste and deploy.
So to clear this up, if your dealing with intrusions or problems from the current storm that is happening in the internet, this is an easy way to block countries from even accessing your website. The value is keeping your clients safe from ddos and hostile traffic/ malware. Quick Cloudflare video implementation here:
( eq "BY") or ( eq "CN") or ( eq "RU") or ( eq "RO") or ( eq "KP") or ( eq "KR") or ( eq "HK") or ( eq "CZ") or ( eq "UA") or ( eq "PL") or ( eq "TW") or ( eq "EG") or ( eq "AL") or ( eq "LV") or ( eq "TR") or ( eq "TH") or ( eq "HR") or ( eq "ID") or ( eq "NI") or ( eq "EC") or ( eq "PE") or ( eq "PA") or ( eq "MT") or ( eq "SA") or ( eq "RS") or ( eq "EE") or ( eq "KE") or ( eq "HU") or ( eq "AE") or ( eq "SI") or ( eq "keyword") or ( eq "SN") or ( eq "NP") or ( eq "IN") or ( eq "BD") or ( eq "MY") or ( eq "CH") or ( eq "PH") or ( eq "AR") or ( eq "BA") or ( eq "NL") or ( eq "SI") or ( eq "DO") or ( eq "JP") or ( eq "AT") or ( eq "GR") or ( eq "DE") or ( eq "PT") or ( eq "MX") or ( eq "DZ") or ( eq "UZ") or ( eq "GH") or ( eq "JM") or ( eq "DE") or ( eq "OM") or ( eq "CL") or ( eq "MA") or ( eq "VE") or ( eq "SK") or ( eq "LT") or ( eq "BH") or ( eq "PK") or ( eq "IT") or ( eq "SE") or ( eq "MN") or ( eq "BR") or ( eq "LK") or ( eq "MM") or ( eq "AZ") or ( eq "UY") or ( eq "AU") or ( eq "ES") or ( eq "AU") or ( eq "BY") or ( eq "MD") or ( eq "BY") or ( eq "RS") or ( eq "SK") or ( eq "RO")
Screen Recording 2022-02-24 at 01.43.14 PM
Screen Recording 2022-02-24 at 01.43.14 PM
Shared with CloudApp
9 πŸ‘πŸ½2 πŸ’Ÿ2 🀭13
46 πŸ’¬πŸ—¨


blocking countries a script for keeping your clients safe from ddos and hostile traffic or malware

I noticed last night the same Internet Protocol (IP) address and user agents hitting different sites on different servers, which was unusual. Usually they're different groups of hackers, but this was one hacker group apparently doing a massive blast across the Internet. They were rotating from Russian IPs through Swiss and other country IPs.
Is there documentation for an increase in hacking activity?

Dixon Β» Roger
There's a panic button on Cloudflare. But I do not think blocking every country is very constructive. Nose, face spite cones to mind. I expect Russian hackers have US proxies as well.
Roger Β» Dixon
I didn't recommend blocking countries in my response. But now that you mention it, I will say that blocking a limited set of countries can be a start and only a start. Done RIGHT, there is very little downside.
If one has legit traffic from certain countries AND they opted in to Chrome Core Web Vitals (CWV) spying then it'll impact that.
But if you don't have legit traffic from certain countries and that's where a significant amount of hack bots originating, then it's a no-brainer to do a limited country blocking. But long term this can backfire so it's not something I recommend as a long term practice.
Yes I know that hackers and scrapers hide behind Virtual Private Network (VPN) and TOR IP address, and they also use cloud servers.
Blocking certain countries, done right, is a good start imo, but people need to know it won't solve their problems because there are many cloud hosts who apparently don't monitor for criminals using their cloud services.
And btw, I don't block countries, I try to be more granular about blocking.
By the way, I checked a couple Internet hack activity maps and Russian and Swiss (cloud hosting) IPs we're the top threat actors for yesterday.
I banned them by their browser user agent which was emulating and older version of Chrome.
Yeah, yeah whack a mole, but in this case it's probably the Russian government and they're apparently going for scale not precision. They were also probing for Magento vulnerabilities in addition to WP vulnerabilities.

Cory ✍️
Follow up to all of the questions. So far as specific countries being challenged, we did this based on data we were seeing across all of our Cloudflare accounts. We will be lifting Canada and other usual non threatening places when we feel good. Yes vpns exist, yes there are us proxies in use. The point of this post was to give the community a tool to use of you are experiencing issues. Creating a managed challenge is not ""blocking" anything. Apologize for any confusion. Security layers are a good thing when cyber war kicks off.

Mircea Β» Cory
Buy wordfence or cloudfare protection and tou are safe. Otherwise this message is racist and purely to put more fear and pressure on the world wide population. I get more attacks from usa based ips than I get from romania, Netherlands, Japan, lol Japan:)) i never faced a single attack from japan or by, or other countries you have here
Cory ✍️ » Mircea
I assure you that is not my intention. Please feel free to not use it. Its a challenge, its not a block. I don't see how that is racist. I am sorry if you feel that way.
Mircea Β» Cory
I undertand Cory, but think about it, if u start blocking a country no more clients from that. unless u are doing local SEO/stuff, u can block everyones, but if u have a general world wide business, the best way to do is with cloudfaare or wordfence ( even nulled if u don't have money to do it – i don't suggest that, but better if u have no money and than u can buy it after ).
The only way i said that comment above, it was just because you said due to the war that is going in east europe. and that has nothing to do with the russia attacks. which will ever ever attack poor people nbusiness. those are rest of the world, good ones attack big companies or govs. and they will face justice at some certain point in their life. but for real 70% of the attacks are from USA ip;s and I cant do any blocks regarding them β€’
Cory ✍️ » Mircea
Buddy…this is a Cloudflare filter suggestion…like literally. Wordfence runs parallel to this as a Content Management System (cms) firewall. They work together on different security levels.
Mircea Β» Cory
I understand, and thank you for your time and trying to help, I am sorry i said u are probably racist. you just tried to help with the information you shared, probably didn't made the impact you thought it would be, but if some guys need it, they can do it. πŸ™‚ sorry if my english is not good and i wasnt able to express my self better
Cory ✍️
absolutely NO WORRIES! πŸ™‚ I hope you can use the information to help your team if its applicable.


Let Me Know Your Rate per Word, Country of Origin, Order a Short Test Article!

A Case Study of a Commentator Inherited a Dumpster Fire of a Website and Made It Work

The Content Quality Needs to Meet the Probability of People to Look For This Content

19 Ultra Beginner Tips to Grow Website Traffic

Leave a Reply

Your email address will not be published. Required fields are marked *