The next generation Fraud Detection API is available. Sign up FraudLabs Pro now!
homeHome homeMy Account

IP2Location™ Knowledgebase


credit card fraud prevention What is the IP2Location web service?
credit card fraud prevention Why should I use the IP2Location web service?
credit card fraud prevention How accurate are your IP2location databases?
credit card fraud prevention How do I retrieve a visitor's IP address using ASP, ASP.NET, C#, VB.NET, PHP, JSP & ColdFusion?
credit card fraud prevention Can I test the demo version for free?
credit card fraud prevention Can I evaluate a IP2Location web service prior to purchasing?
credit card fraud prevention If I am using a free license, can I receive technical support / help?
credit card fraud prevention Why should I upgrade from the free licence version to the full version?
credit card fraud prevention What happens if I use up all of the credits allowed under my subscription plan?
credit card fraud prevention How to subscribe for the IP2Location web service?
credit card fraud prevention How to integrate the IP2Location web service?
credit card fraud prevention I am behind a proxy. How can I connect to your web service?
credit card fraud prevention How do I test the location using multiple IP address?
   
Q: What is the IP2Location web service?
A:
IP2Location web service is a hosted, secure and automated XML based solution that help you to determine and identify geographical information of your online visitors in real time. By using this web service, you are able to know your online visitor's geographical location, such as country, region, city, latitude, longitude, ISP and domain name using proprietary IP address lookup database and technology without invading Internet user's privacy.
   
 
credit card fraud prevention Back To Top
   
Q: Why should I use the IP2Location web service?
A:
IP2Location web service allows you to gain better understanding about your online visitor by geographical location within a minute. It can be used for targeted ads, web log statistics, contents distribution by region for digital rights management and so on. Moreover, IP2Location web service is integrated via an XML-based web services interface to any product or platform. Sample codes are provided in various progamming languages to ease integration. It also provides multiple subscription levels with different prices based on your business needs.
   
 
credit card fraud prevention Back To Top
   
Q: How accurate are your IP2location databases?
A:
The IP-Country database has over 99% accurate, which is higher than any of our competitors. The small number of inaccuracy is due to dynamic IP address allocation by large ISPs such as AOL and MSN TV. Due to the fact that AOL uses a network that routes all of the company's Internet traffic through Reston, Virginia, all IP-based geo-location services, including IP2Location, are unable to determine the state and city for people who dial into the AOL network.
   
 
credit card fraud prevention Back To Top
Q: How do I retrieve a visitor's IP address using ASP, ASP.NET, C#, VB.NET, PHP, JSP & ColdFusion?
A:
The IP address is available from the web server variable "REMOTE_ADDR".

ASP without Proxy detection

<%
    ipaddress = Request.ServerVariables("REMOTE_ADDR")
%>

ASP with Proxy detection

<%
    ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
    if ipaddress = "" then
        ipaddress = Request.ServerVariables("REMOTE_ADDR")
    end if
%>

PHP without Proxy detection

<?
    $ipaddress = getenv(REMOTE_ADDR);
?>

PHP with Proxy detection

<?
    if (getenv(HTTP_X_FORWARDED_FOR)) {
        $ipaddress = getenv(HTTP_X_FORWARDED_FOR);
    } else {
        $ipaddress = getenv(REMOTE_ADDR);
    }
?>

JSP without Proxy detection

<%
    String ipaddress = request.getRemoteAddr();
%>

JSP with Proxy detection

<%
    if (request.getHeader("HTTP_X_FORWARDED_FOR") == null) {
        String ipaddress = request.getRemoteAddr();
    } else {
        String ipaddress = request.getHeader("HTTP_X_FORWARDED_FOR");
    }
%>

ColdFusion without Proxy detection

<CFCOMPONENT>
<CFSET ipaddress="#CGI.Remote_Addr#">
</CFCOMPONENT>

ColdFusion with Proxy detection

<CFCOMPONENT>
<CFIF #CGI.HTTP_X_Forwarded_For# EQ "">
<CFSET ipaddress="#CGI.Remote_Addr#">
<CFELSE>
<CFSET ipaddress="#CGI.HTTP_X_Forwarded_For#">
</CFIF>
</CFCOMPONENT>

ASP.NET (C#) without Proxy detection

public string IpAddress()
{
    return Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
}

ASP.NET (C#) with Proxy detection

public string IpAddress()
{
    string strIp;
    strIp = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
    if (strIp == null)
    {
       strIp = Request.ServerVariables["REMOTE_ADDR"];
    }
    return strIp;
}

ASP.NET (VB.NET) without Proxy detection

Public Function IpAddress()
    IpAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
End Function

ASP.NET (VB.NET) with Proxy detection

Public Function IpAddress()
    Dim strIp As String
    strIp = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
    If strIp = "" Then
       strIp = Request.ServerVariables("REMOTE_ADDR")
    End If
    IpAddress = strIp
End Function
   
 
credit card fraud prevention Back To Top
   
Q: Can I test the demo version for free?  
A:
Absolutely yes! We provide live demo for the IP2Location web service and you can try it at : http://www.fraudlabs.com/demoip2location.aspx. Just follow some simple instructions and you are on the right track to experience our service immediately!
   
 
credit card fraud prevention Back To Top
   
Q: Can I evaluate a IP2Location web service prior to purchasing?
A:
Yes, of course. IP2Location web service is free for free license users, this free license provides 90 credits per month and there is NO exact expiry date for your free license account. We strongly encourage developers to try our web service prior to purchasing in order to ensure that they will fill your needs 100%.

To register one, please visit:
IP2Location Baisc Free License
IP2Location Standard Free License
IP2Location Professional Free License
 
 
credit card fraud prevention Back To Top
   
Q: If I am using a free license, can I receive technical support / help?
A:
Yes! Our support teams will be glad to assist you. We will ensure that there are no bad surprises after the point of purchase. Our highly trained development staff will provide online support. We will always provide timely, helpful assistance when you have purchased or evaluated our product.
   
 
credit card fraud prevention Back To Top
   
Q: Why should I upgrade from the free license version to the full version?
A:
All subscribers will get extra query credits per month based on their subscription packages. Furthermore, we provide 24-hour email support for all premium subscribers.
   
 
credit card fraud prevention Back To Top
   
Q: What happens if I use up all of the credits allowed under my subscription plan?
A:
If you have used up all of the credits allowed under your subscription plan within a month while your license license key is still valid, you will continue to receive the new credits as per stated in your subscription plan for the following month. You have another option which is, you may like to upgrade your current subscription to another premium subscription plan in order to enjoy more credits per month.

If you wish to add more credits just for the current month, you may like to go for 'Add Credits' and select the credits that suit you. This is a ONE-TIME top up and your subscription package will remain unchanged. Please feel free to email sales@fraudlabs.com for more information.
   
 
credit card fraud prevention Back To Top
   
Q: How to subscribe for the IP2Location web service?
A:
You can order the IP2Location web service through our online purchase system. Click on the subscription button (If you are a registered user, please login before proceeding to subscription area). If you are a first time user, you are required to fill in your details for registration purposes. The next step is to key in your payment information and click on the submit button to complete the subscription. As soon as you have clicked on the submit button, the system will send a license key to your inbox. The final step is to check your email account and integrate the license key.
   
 
credit card fraud prevention Back To Top
   
Q: How to integrate the IP2Location web service?
A:
Please see our sample codes for more information.
   
 
credit card fraud prevention Back To Top
   
Q: I am behind a proxy. How can I connect to your web service?
A: Yes, you will have to do some settings before you can connect to our web service. Please see here for more information
 
credit card fraud prevention Back To Top
   
Q: How do I test the location using multiple IP address?
A: LocaProxy.com. It provides multi-location HTTP proxies to help businesses test geolocation applications. This solution reduces the total cost of testing by supplying the Distributed Infrastructure as a Service.
 
credit card fraud prevention Back To Top