Simple GeoDNS using BIND and IP2Location

Implementing Geo-aware DNS using BIND with IP2Location Database This article illustrates how to use the IP2Location IP-Country Database (DB1) to implement a geolocation feature in a BIND DNS server easily. The two concepts we are applying to BIND are “Access Control List” and “Views”. There is no need to patch the BIND […]

Configure Country Access Control in CloudFront Using .NET

The following sample application gets the IP address of the end user and sends the IP address to IP2Location. IP2Location returns the country code that corresponds with the end user’s IP address. The application then evaluates whether the value returned by IP2Location matches the blocked country code. If the end […]

Configure Country Access Control in CloudFront Using Java

In this example, we demonstrate you on how to obtain country code that is associated with an end user’s IP address. For all users except VN users (Vietnam), users are allowed to access the CloudFront content where distribution is allowed. In this case, the GetCountryCodeServlet.java will request SignedUrl.java to create […]

Configure Country Access Control in CloudFront Using PHP

The following sample application gets the IP address of the end user and sends the IP address to IP2Location. IP2Location returns the country code that corresponds to the end user’s IP address. The application then will show the country code that is blocked and evaluates whether the value returned by […]

Importing IP2Proxy data into Redis and querying with PHP

The aim of this guide is to demonstrate how to import IP2Proxy data (PX11) in CSV form into Redis and then query the data in a PHP web page. First of all, you will need to download the IP2Proxy PX11 CSV file.Download commercial version at https://ip2location.com/download?code=PX11 Extract out the IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.CSV […]

Importing IP2Location data into CouchDB and querying with PHP

The aim of this guide is to demonstrate how to import IP2Location data (DB26) in CSV form into CouchDB and then query the data in a PHP web page. First of all, you will need to download the IP2Location DB26 CSV file.Download commercial version at https://ip2location.com/download?code=DB26 Extract out the IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY-DISTRICT-ASN.CSV […]