Why do we use IP filtering?

IP Filtering is one of the ways we protect your API account. IP Filtering only allows access to your account from the known and trusted IP address's or your servers or development teams machines or office location. By default you may have up to 5 IP's in the list for any given API service but more upon request.

How does it work?

Our API looks at the incoming IP address from your web application or website, checks this against a list of IP's that you, the customer, has pre-authorized with us. If it matches one in the list the API request is served, if not you will receive an authentication filter error. All this is done in less than 0.0001 second and has no meaningful impact on the response time.

how=IPs-Work

How NOT to find your Web Application IP

Here are some unreliable methods to find your Web Application or Web Site outgoing IP address and should not be used.

  • Pinging your application or domain name
  • Looking at your DNS records for that website or application
  • Running 'IPConfig' from your machine or server
  • Getting your public IP from your own browser, workstation or Server (except for development environments with a single IP)
  • Running the code below from your own machine
  • Looking in IIS or Apache for the IP address associated with your domain


✔ Yes - Code Samples

We have prepared some code for finding your outgoing IP if you are unsure how. Simply put this code in the same location as your Web Site or Application and call it from any browser. This will show on screen the IP address that your application / site is using.
PHP Example

Save this code to a .php file and call it from the web-server you want to use our API from

                            
VB.NET Example

Save this code to a .vb code behind an .aspx file and call it from the web-server you want to use our API from

                         Imports System.Net ' Put this at the very top of the .VB Page   
        ' Put this in a page load event
        Dim client As New WebClient()
		Response.Write(client.DownloadString("https://ukvehicledata.co.uk/ip"))
                               
C# Example

Save this code to a .cs code behind an .aspx file and call it from the web-server you want to use our API from

                            using System; // Put this at the very top of the .cs Page 
                            using System.Net;   
            // Put this in a page load event
            using (WebClient client = new WebClient())
            {
                Response.Write(client.DownloadString("https://ukvehicledata.co.uk/ip/"));
            }




                               
Ruby Example

Save this code to a Ruby file

             require 'net/http'
            puts Net::HTTP.get('https://ukvehicledata.co.uk/ip/', '/')