Blocking Facebook in nginx
How to block Facebook complete from your site? It is easy using geoip2 module in nginx. In Debian / Ubuntu install libnginx-mod-http-geoip2 and we need… Read More »Blocking Facebook in nginx
How to block Facebook complete from your site? It is easy using geoip2 module in nginx. In Debian / Ubuntu install libnginx-mod-http-geoip2 and we need… Read More »Blocking Facebook in nginx
Ten years ago I have published my IP ranges generator and few other articles how it can be used to generate mikrotik firewall address lists or Haproxy ACLs This articles gets many comments about missing or wrong IP ranges. Yes, I know about it, but I can’t do anything with that – source data delegated blocks have country assigned by RIRs. Manually doing exceptions is no way to go…
Read More »New country IP ranges generatorIt is few years since I have written my IP Country generator. As I recently added new file geoip.txt (warning, big file!) for use with haproxy, I will show you how you can easily create ACL in HAproxy to filter specific country.
Read More »HAProxy Country filtering ACL
There has been some comments in my old posts trying to use generated country lists in Apache .htaccess. This approach is wrong, and I will show you much better way how to block or allow specific country.
My original article about this topic is more that year old and was using Regional Internet Registries (RIRs) list as source and was in python. This post will describe other simple solution how to generate some country IP ranges list.