IP address geolocation

Bash script to block IP by country

Script I originally posted on IPInfoDB to block country based on IP address geolocation using iptables.

IP Geolocation now on dedicated domain

Since our geolocation database and API became very popular recently, I decided to put all the tools on a new domain :

ipinfodb.com

Also, the forums are now with PHPBB which is much much better than drupal forums module on blogama.org ;)

Feel free to post your comments about the new site in the ipinfodb forums, negative or positive!

Online fraud detection API

I created a small API for an e-store I manage (Portafixe.com) that calculate the distance between the shipping/billing location and the IP location for fraud prevention. Now i'm making it available to the public for free.

April IP geolocation database released, new stucture

The April release is now available.

For previous users of the database there is some changes in the database structure. These mods are from suggestions from users in the forum :

Ecommerce fraud detection with PHP

I manage a medium size Ecommerce website (Portafixe.com) and we were starting to get alot of transactions that looked very suspicious. I saw that all of them were made from very diffents locations than the credit card billing address. From there, I made a small script (PHP) that calculate the distance between the IP location and the shipping address and today i'm giving it to you. Once you have the distance, you simply judge what distance is acceptable (because it's not precise as a GPS!).

Deny or allow countries with Apache htaccess

The following script is using blogama.org IP geolocation API to automatically generate Apache htaccess file to deny or allow specific countries. You can put this script under crontab and the htaccess rules will be automatically updated. Also, it can update multiple htaccess files.

Blocking IP address of any country with iptables

In this howto, I will show you how to automatically create iptables rules to block all connection from one country or more. The blocklist is created with an API I wrote and you can use wget to update the blocklist monthly.

IP address city geolocation HTTP API

How to use our HTTP API to get ip geolocation information such as country, city, region, zipcode (US-CA), latitude and longitude. We offer 2 type of output, xml and CVS.

IP address geolocation SQL database

I was trying to find a free SQL database of IP geolocation with country, city, region, latitude and longitude for a project but none was accurate and up to date so I decided to create my own and now I offer it for free.

Getting IP geolocation on Ubuntu with MaxMind geoip

In this howto I will show you how to install MaxMind geoip on Ubuntu and how to use it.