How to get user's response of Share location prompt in browser?

I am using MaxMind GeoIP2 JavaScript API to determine a user's location when they enter my website. This prompts the user for their permission to provide the location via the browser. I want...

reader class not found in GeoIP2

I am trying to install Maxmind's GeoIP2. I did everything by their instructions and I still get this annoying error: Fatal error: Class 'GeoIp2\Database\reader' not found in C:\Program...

getCity/state from IP address using PHP

I am working on a client project, where he needs the city/state of the user by taking his ip address. he has purchased maxmind GeoIP2 Precision, but no idea how to implement the code in php....

How accurate is Maxminds GeoIP2 compared to GeoLite2 at the first tuesday of the month exactly?

I would like to know how much the database GeoIP2 is more accurate then the GeoLite2 database, when both databases are downloaded at the first tuesday of the month. Are there just some ip ranges...

Error installing GeoIP2: geoip2/geoip2 v2.3.1 requires maxmind/web-service-common

I am running into this error while trying to install GeoIP2. Unfortunately, the error message is not very googlable and I can't figure out how to fix it. It is clear that something is missing, but...

Spring-Session with JDBC configuration: Table 'test.spring_session' doesn't exist

I try to run this example but without using Redis, instead with my local MySQL server. I have edited this spring boot app like this: Gradle: buildscript { repositories...

Maxmind GeoIP2 tutorial (How-to)?

I used GeoIp, with pure PHP codes.. but GeoIp2 become namespaced and etc, and at this moment i couldnt find out how to use that.. i have downloaded GeoLite2-Country.mmdb, and now how to get the...

How to get the user's country for a HTTP request in the Backend?

I am trying to get the country where the user is sending the request to my server. So far I have found those...

vendor folder is not present in my docker image

I'm trying to build a deployable image of my laravel app into docker. Here is my dockerfile: FROM php:7.1.14-fpm ENV node_version 8.4.0 ENV npm_version 5.7.1 RUN echo "deb...

Django: ImportError: cannot import name 'GeoIP2'

I am trying to set up geoip2 for GeoDjango as per the instructions. For some reason the wrapper isn't importing the function. It worked before I downloaded the databases and pointed to them in my...

GeocoderLaravel reverse() returning null

I am using the GeocoderLaravel package Geocoder::geocode('5.43.168.58')->get()->first()->getCountry() works fine. However when I try: Geocoder::reverse('52.7737667',...

Using longitude and latitude in GeoIP to get geographical information

I have been using GeoLite2 from the GeoIP package in Python to geolocate IP-adresses. It is quite easy. Using this code i.e. i can obtain a lot of information about the IP-address: reader =...

Geolocating a large number of posts based on IP Addresses. (880,000 rows)

Let me start by saying that I have exhausted all the various options that I could come up with on my own, and researched each option to all visible dead ends. I have a typical mysql forum database...

How can I correctly setup custom headers with nginx ingress?

I have the following configuration: daemonset: apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: nginx-ingress namespace: nginx-ingress spec: selector: matchLabels: ...

error: command 'gcc' failed with exit status 1 when installing pip packages on alpine docker image

I'm attempting transition my base docker image from centos 7 to alpine, however I receive gcc errors when trying to install pip packages. This is a snippet of the error received: Successfully...

MaxMind pulling Geolite2 gets 401 Unauthorized

Geolite2 access changed on 12/30. Today I registered for a Maxmind account, registered a license key (both one that "Will this key be used for GeoIP Update?" and one that will not) .. and now each...

How can I compile a GeoLite CSV file into MMDB again?

I have made a few corrections to location names in a GeoLite2 CSV file. My site only retrieves locations from the MMDB file, so how can I compile back the changed CSV file into the MMDB binary...

Attempted to call an undefined method named "getPosition" of class "App\Controller\ApiController"

I am trying to instantiate a domain object in my controller but I am getting this error "Attempted to call function "getPosition" from namespace "App\Controller"". I hope you can help me, whit...

ImportError: No module named geoip2.database

I'm installing modern honeypot network and currently stuck on geoip2. I have installed geoip2 via pip using this command: pip install geoip2 I also add geoip2 location...

MAVEN :- Could not resolve dependencies for project

I hope some one facing the same issue to resolving the dependencies. POM.xml file mentioned below <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0...

Composer stuck on `Something's changed, looking at all rules again` while updating laravel to 5.6

I am trying to update my Laravel application. I was at 5.2 and now I am at 5.5. Everything works fine till here. Now I have changed it to 5.6.* in my composer file, and no matter how many times I...

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...

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...

How to block visitors from particular country with nginx and GeoIP Module

I want to block a particular country's visitors to access my website www.mainwebsite.com through Nginx and GeoIP Module. First I tried on www.test.com. What steps I followed on test...

Save user data in UserProfile with Middleware and GeoIP

I have a small question to ask you. I use GEO IP to locate my users and I would like to record this information every time user log in to improve the user experience of the app. The problem is...

SecretManagerServiceClient in Google Cloud Run and authentication via service account

I can create a SecretManagerServiceClient without using a key file successfully in Google Cloud Shell: from google.cloud import secretmanager from google.oauth2 import service_account from...

Maven failing to download artifact from central repository

I have two private JFrog repositories setup. One repository handles releases and the other handles snapshots. Here is how I have defined this in my settings.xml file. <settings> ...

ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

I am using Docker with my dockerfile as: FROM python:3-alpine WORKDIR /app COPY ./requirements.txt . RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev libffi-dev RUN pip install...

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...

Relevant tags