Questions tagged [geoip]
GeoIP is the process of analyzing an IP address and determining the geographical location of that end point.
687
questions
0
votes
1
answer
14
views
Maxmind geoipupdate gets http 403 on docker run
I am using maxmind GeoLite2 binary database for geolocation services and I want to update this periodically.
It works fine on updating through geoipupdate program installed via brew.
However Maxmind ...
-1
votes
0
answers
8
views
How does MaxMind GeoIP database handles uncertain resolution results for non US IPs?
Looking at the following release notes information: https://dev.maxmind.com/geoip/release-notes/2016?lang=en
I see the following information:
For IPs in the United States that we are unable to ...
0
votes
0
answers
24
views
AWSTATS with GeoIP2Lite showing numbers instead of country flags
I configured GeoIP2Lite (Country and City) to use with AWSTATS 7.8 on CentOS7. So far it's working, but I cant see the flags of the countries. Instead they're shown as numbers. (See attached ...
0
votes
0
answers
15
views
GeoIP API service with feedback
There are many services what can get approximate location (latitude and longitude) of the client based on his IP address.
The result is ofter inaccurate or completely wrong and I have access to ...
0
votes
0
answers
11
views
geoiplookup 86.32.68.152 is not correct
geoiplookup 86.32.68.152
on Ubuntu and freshly updated database says "Austria" but its (on every iplook - sites) and also on the MaxMind site Croatia!
How can this happen?
0
votes
1
answer
95
views
ip2location always prints "Invalid Database Path" - How to call their database file?
In order to get 2 letters of country from IP Address, I was advised to use this bin database https://lite.ip2location.com/database-ip-country-region-city
But wherever I place their database file, I ...
0
votes
2
answers
63
views
How accurate is a /24 IP address in geolocation lookup?
Suppose I have an IP: 1.2.3.4 and instead choose to geolocate 1.2.3.0 (removing the last octet).
I noticed if I truncate the last octet, the accuracy either does not change or if it does, only merely ...
0
votes
0
answers
265
views
logstash geoip parsing using apache_log data failed
I am new to Elasticsearch..
I want to use apache_logs data to use geoip filter in logstash.
apache log data:
"83.149.9.216 - - [17/May/2015:10:05:03 +0000] \"GET /presentations/logstash-...
0
votes
1
answer
74
views
Most efficient way to get users country in Next.js/Node.js?
In a Next.js app, what would be the most efficient (fastest) way to retrieve the users country?
Among other things, I would use it to determine which scripts are loaded using next/script.
I looked in ...
1
vote
1
answer
132
views
geoip_country_name returns "-" in nginx
I am trying to install geoip module for nginx though dockerfile by adding to my dockerfile the following:
RUN apk add --no-cache libmaxminddb nginx-mod-http-geoip
RUN cd /var/lib; \
mkdir -p ...
0
votes
1
answer
147
views
Update Database leads to "Invalid account ID or license key" message
I'm running the geoipupdate tool (https://github.com/maxmind/geoipupdate) to update the database.
If I run it locally, it works well.
When I use it on my prod server, I get the "Invalid account ...
0
votes
0
answers
108
views
Bypass Apache 2.4 mod_geoip deny with basic authentication
I am running website with classifieds, an got lot of spam/scam from some countries.
Those are denied in a .htaccess file with :
GeoIPEnable On
SetEnvIf GEOIP_COUNTRY_CODE XX BlockCountry
... more than ...
0
votes
1
answer
238
views
Checking for GeoIP in nGinx does not work
I have a list of countries that I want to restrict access to the web application. For example, users from Russia should be prohibited from visiting my web application. I downloaded the database of ...
1
vote
1
answer
121
views
Add geoIP data to old data from Elasticsearch index
I recently added a GeoIP processor to my ingestion pipeline in Elasticsearch. this works well and adds new fields to the newly ingested documents.
I wanted to add the GeoIP fields to older data by ...
0
votes
1
answer
66
views
How can I enable geoIP on Chrome / Firefox? Services like ipinfo are getting blocked on Chrome and Firefox, but work in Brave
On page load, I'm trying to fetch coordinates based on visitor IP, with a service like ipinfo:
const request = await fetch("https://ipinfo.io/json?token=TOKEN", {
method: 'GET',
&...
-1
votes
1
answer
165
views
How to fix this error module 'django.http.request' has no attribute 'META'?
I'm trying to get the visitor's IP address in my django project, here's the code I followed.
from django.contrib.gis.geoip2 import GeoIP2
def add(request):
x_forwarded_for = request.META.get('...
1
vote
1
answer
264
views
How to show correct tax rate by country on SHOP (as well as basket and checkout)
I have a WooCommerce shop based in UK which sells internationally. I have set up different tax rates for different countries and integrated MaxMind IP Geolocation. The price with correct tax rate by ...
1
vote
1
answer
105
views
Trying to display full continent name based on 2 letter code
I need to display site visitor's continent. I am using geoip functionality to pull 2 letter code, which I can get to work very easily. However, just displaying 'AS' for Asia to the site visitor is ...
0
votes
1
answer
274
views
How can i access the GeoLite database in nginx?
I run a Nginx proxy and want to use the GeoLite2-Country/city databases.
I followed the instructions on
"https://docs.nginx.com/nginx/admin-guide/dynamic-modules/geoip2/"
and "https://...
0
votes
0
answers
51
views
SSL skip the restriction set by maxmind
i have a problem with https://www.maxmind.com/en/home
I am trying to enable SSL for my webserver. However, when I enable ssl, and when i access the server with ssl(https) is skip the restriction set ...
0
votes
1
answer
478
views
add Nginx 1.20.1 GeoIP2 module
I'm trying to configure nginx to build the GeoIP2 module, by following this installation:
https://github.com/leev/ngx_http_geoip2_module
first I still didn't understand what is defrences between ...
0
votes
0
answers
80
views
How to update geoip legacy
I have GeoIP Legacy installed on a Linux server (apache). It was installed years ago by someone else and the links I have for it are no longer active. I would like to update it to GeoIP Lite but there ...
0
votes
0
answers
70
views
Installing GeoIP pycharm windows
ive been trying to install GeoIP on pycharm for windows. i get this error while trying to run:
pip install geoip
getting this:
Running setup.py install for geoip ... error
ERROR: Command errored ...
0
votes
1
answer
489
views
NGINX block by country and exclude bots
I want to block traffic from all countries except one and add search bots to the exceptions. I'm trying this:
geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
...
0
votes
1
answer
1k
views
Can't enable geoip blocking nginx - [emerg] unknown directive "geoip_country"
I am trying to enable geoIP blocking on Nginx i get an error.
I already use it on other VPS without problems
/etc/nginx/sites-enabled # nginx -V
nginx version: nginx/1.10.3
built with OpenSSL 1.1.0l ...
2
votes
1
answer
136
views
Cart Message for specific shipping class, minimum amount and geolocated country in WooCommerce
I tried to make the code from Cart Message for a specific shipping class and a minimal cart total in Woocommerce coexist with my recent code Free shipping cart message for a specific shipping class, a ...
1
vote
0
answers
36
views
Looking For Consultant for GeoIP Implementation to NGINX
We run a static site, and I would like to divert foreign traffic to other content without disrupting Google Search bots and our SEO ranking.
Is there a consultant who can implement this for us?
0
votes
1
answer
81
views
What is the difference between IP and GeoIP?
Is GeoIP the IP address of the ISP servers and not end user?
I had in my mailing list 5 people with the same geoIPs but their "regular" IPs were all different and even from different subnets....
0
votes
1
answer
831
views
Getting the user country using GeoIP2 in Nginx
I've been pulling my hair trying to get this thing to work properly, but it seems that whatever I do, the X-Country gets the value "US", since that's the country of the last IP address in ...
0
votes
1
answer
517
views
How to create a map chart with GeoIP mapping?
I'm fairly new to ELK (7.10), and I would like to know how to create a map chart using GeoIP mapping.
I already have logs parsed and one field is "remote_ip" which I want to view on a map ...
0
votes
0
answers
386
views
logstash error - database File does not exist or cannot be opened
i making map using geoip, elastic stack
but i have problem
docker-elk, filebeat
input {
beats {
port => 5000
}
}
filter {
grok {
match => { "message&...
1
vote
0
answers
172
views
Nginx load balancer as geoip based traffic router
I have configured nginx load balancer with geoip to redirect traffic based on request user ip.
its simply picking ip of user and redirect traffic to closer continental server.
107.155.95.202 ip of ...
-1
votes
1
answer
109
views
What is the easiest and lightest way to identify Indian visitors?
I can write all the necessary code in php or javascript, but what do I use? Geoip? Browser language? (which perhaps in india is: en) something else?
(I don't want to block access to the whole server, ...
0
votes
0
answers
15
views
Trying to return a promise's value from function [duplicate]
Good morning,
please I'm trying to return array value from function... but it always result in undefined when I try to use any value of the array like GetASN('128.101.101.101').autonomousSystemNumber ...
0
votes
1
answer
978
views
GeoDjango: Getting accurate device location with geoip2
I am trying to get the users device location. But the geoip2 returns a location far away from users location (almost 20km-25km). When I connect my device through a mobile network it shows a different ...
-1
votes
1
answer
255
views
EFK stack wit geoip data
Hello please can someone advise on following issue:
I have AKS kubernetes cluster and I am using EFK stack to get logs. Fluentd is running in pods.
I have nginx application pod for which I parse log ...
2
votes
2
answers
775
views
Maxmind Geoip2 API vs downloadable database
I was wondering the differences between the usage of maxmind downloadable database vs their direct web API. Any particular benefits if I download the maxmind database locally to my server instead of ...
1
vote
1
answer
1k
views
How to block a page for certain countries (geoip2) without if?
How it is possible without using if but with map in nginx with the module --with_geoip2_module (dynamic) to block all countries except the chosen and all ip except the chosen, to make it work like ...
-1
votes
2
answers
682
views
Python Geoip2 maxminddb.reader error in EC2 server
Hi I am facing a issue with below code.
PS : Its working fine with my local machine but facing issues in servers.
import geoip2.database
def get_geo_city_from_ip(ip="103.148.20.109"):
...
0
votes
0
answers
190
views
Logstash influxdb output with geoip filter
I’m trying to use logstash geoip filter to send data about location of IP address to InfluxDB via InfluxDB output plugin.
My logstash conf file is:
input {
file {
path => "/root/...
0
votes
2
answers
463
views
Hide product prices on specific countries WooCommerce
I'm trying to hide the products price and add to cart button from woocommerce pages on specific countries.
i've found Turn Woocommerce shop into catalog for geolocated countries? but it works only for ...
1
vote
0
answers
489
views
Maxmind geoip, don't find ip
I have a php docker container that i use on my local environement.
In the dockerfile i put this
RUN apt-get install -y \
geoip-bin \
geoip-database \
libgeoip-dev
RUN pecl install geoip-1....
1
vote
1
answer
1k
views
Apache mod_maxminddb - not showing country code, ERROR undefined index
I installed mod_maxmindb as suggested on github. Probably i missed something but i don't get an country code or something else.
I found 2 issues:
during make --> dlname not found
and during ...
5
votes
1
answer
5k
views
How install the Geoip2 module on a Nginx running in a production environment?
Can someone explain to me how to install the Geoip2 module on a Nginx 1.14 running in a production environment without breaking the current configuration?
I only find sources indicating how to ...
0
votes
1
answer
622
views
Redirecting depending on IP Country (Geo-IP)
This code shows the page while running and then redirects it.
I want it to redirect very quickly, but it does not.
Where I made the application blogspot.com
<script>
fetch('https://freegeoip....
0
votes
1
answer
82
views
Proper way of doing Geolocations using GeoIP inside a Celery task
So, I have a Django middleware calling a Celery task. This task queries the GeoIP2 database to geolocate the given IP address and perform some additional processing. In the simplified form, the celery ...
0
votes
1
answer
184
views
nginx geoip city how to use English characters only?
I have a problem with national characters for showing geoipCity
I need to set header for proxy as a X-City, but I want to use english only characters, is there any option for language?
for example we ...
0
votes
2
answers
245
views
How to correct maxmind GeoIP location?
my tunnelbroker (HE) IPv6 prefix is located at IRAN maxmind GeoIP says.
My Prefix is: 2001:470:7549::/48 and should be reported in US. How can i correct this?
Greetings
1
vote
0
answers
237
views
Maxmind Free GeopIP Encoding Issues in Latest CSV
While Going trough the maxmind free geopip2 i encounterd records as follows when i was figuring which IP belongs to India and as per Country Record India has geoname_id as 1269750
geoname_id,...
1
vote
1
answer
289
views
Website not working properly since moving host. GeoIP Issue
My website used to work perfectly fine a few months ago. However, since changing host last month some parts of my website no longer work.
I am very sure the issue is related to GeoIP. My website ...