Questions tagged [geoip]

78 questions
21
votes
9 answers

Relatively easy way to block all traffic from a specific country?

I have a web app that has no users in the Philippines, but is constantly bombarded by spammers, carders testing cards, and other undesirable activity from there. I can see in the logs that they have IPs in the Philippines and are initially finding…
Eli
  • 741
  • 2
  • 8
  • 16
13
votes
3 answers

Best way to block a country by IP address?

I have a website that needs to block a particular country based on IP address. I am more than aware that IP-based blocking is not a foolproof method for blocking visitors, but it is a necessary step in the right direction. Since I'm using PHP, what…
Nathan Osman
  • 2,705
  • 7
  • 31
  • 46
11
votes
2 answers

GeoIP for configuration into nginx

I'm trying to compile geoip into nginx. When doing ./configure --with-http_geoip_module I get the following error. ./configure: error: the GeoIP module requires the GeoIP library. You can either do not enable the module or install the library. I've…
Mark Tomlin
  • 620
  • 3
  • 10
  • 23
8
votes
2 answers

Installing GeoIP on CentOS

On CentOS 6 I cannot install GeoIP even though many websites describe installing GeoIP with the following commands: yum install GeoIP GeoIP-devel GeoIP-data I get No package GeoIP available.
unixman83
  • 1,912
  • 8
  • 25
  • 33
5
votes
3 answers

unknown directive "geoip_country" on nginx/1.10.1

I have a nginx/1.10.1 on my CentOS 7 installed via nginx repo. I just install geoip module [root@www nginx]# nginx -V nginx version: nginx/1.10.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI…
azatuni
  • 83
  • 1
  • 1
  • 9
4
votes
4 answers

Nginx and GeoLite2 not working

Is Nginx official ngx_mod_http_geoip compatible with GeoLite2 databases ? I can't get them working, so I assume they are not compatible ?
user3448600
  • 1,449
  • 2
  • 12
  • 12
4
votes
3 answers

Geo-blocking in Azure

Is there any functionality available in azure out of the box to block access to a website or server from specific countries? In a larger project that I'm involved with, we have an Imperva WAF and Palo Alto firewall that provide geo-blocking…
Don Pratt
  • 141
  • 1
  • 3
3
votes
1 answer

Installing GeoIP on Amazon EC2 Linux

I am trying to install GeoIP module to block country specific traffic to my website. My Website is LAMP configured and hosted on Amazon AWS EC2 instance. As per some article on google, I followed these steps: yum install epel-release In response, I…
3
votes
0 answers

GeoIP vs IPset performance in iptables

I would like to ask you what is faster in term of performance GeoIP or IPset. Let me explain, imagine that I have rule: iptables -A INPUT -m geoip ! --src-cc US,UK,CA -j DROP And imagine that I have IPset of hash:net and I put all these IPs (from…
tomsk
  • 257
  • 4
  • 18
3
votes
0 answers

Apache 2.4, mod_geoip GeoIPScanProxyHeaders "On" not working

apache httpd.conf LoadModule geoip_module modules/mod_geoip.so GeoIPEnable On GeoIPEnableUTF8 On GeoIPOutput Env GeoIPScanProxyHeaders On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat IndexCache HTTP…
ar099968
  • 485
  • 1
  • 3
  • 11
3
votes
2 answers

Nginx geoipblocking & allowing LAN IPs

I'd like to block IPs with geoip except whitelisted countries AND the local area network. The first part works flawless, the second one not. Somwehere searching the internet I found the codes LH (local host) and LN (local network), but they are…
john
  • 31
  • 1
  • 2
3
votes
2 answers

Haproxy not properly passing on X-Forwarded-For header

I have backend web servers that receive requests by way of haproxy->nginx->fastcgi. The web app used to see multiple ip's coming through in the X-Forwarded-For header, chained together with commas (most original IP on the left). At some point in…
JesseP
  • 196
  • 1
  • 1
  • 6
3
votes
5 answers

Block all communication from a list of IP addresses

Is there any firewall(preferred some free :) ) that can block all communication from all ip addresses except from some IP's coming from a particular location... i basically want to block DDOS attack on my servers its being getting hit from some IP's…
Varun
  • 89
  • 5
3
votes
1 answer

DNS setup for website on geo redundant servers

Let's say: I have a website written in English and shown on www.example.com. The website is on a US server now (based on cPanel/WHM) at the IP address 192.0.2.0. I can manage the DNS of example.com using a control panel to add/modify any records:…
Marco Demaio
  • 580
  • 1
  • 8
  • 22
3
votes
2 answers

NginX GeoIP cause extra load?

Because Nginx requires the geoip_ directives to go into the main http{ } block of the nginx.conf file, does that mean the geoip data is being pulled for every single request? In other words, does NginX look up the geoip data for ALL of the requests…
Miko
  • 1,709
  • 4
  • 22
  • 28
1
2 3 4 5 6