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 the IP2Location.io IP Geolocation API. The IP2Location.io API returns a JSON string containing the country code that corresponds to the end user’s IP address. The application then will show the country code […]

Importing IP2Proxy data into Redis and querying with PHP

The aim of this guide is to demonstrate how to import IP2Proxy data (PX12) 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 PX12 CSV file.Download commercial version at https://ip2location.com/download?code=PX12 Extract out the IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER-FRAUDSCORE.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 […]

Importing IP2Location data into DynamoDB and querying with PHP

The aim of this guide is to demonstrate how to import IP2Location data (DB26) in CSV form into DynamoDB 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 […]

Importing IP2Location data into Amazon SimpleDB and querying with PHP

The aim of this guide is to demonstrate how to import IP2Location data (DB26) in CSV form into SimpleDB 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 […]