Explore our IP Address Database Downloads for instant access to our IP address insights

Learn more
  1. IPinfo
  2. Blog
  3. How to

IPinfo Blog

Posts tagged with How to

Mastering NGINX with IPinfo for Access Control and Privacy Policies

NGINX (pronounced "engine-x") is a popular open-source web server, reverse proxy server, and load balancer. It is known for its high performance, scalability, and efficiency, making it a popular choice for serving web content and optimizing resource utilization. In this tutorial, we will create an NGINX web server serving a static webpage and integrate IPinfo’s IP databases for IP-based intelligence capabilities. IPinfo’s IP database can provide an extended set of features and controls with NGI

IPinfo Team

IPinfo Team

Internet Data Expert

Mastering NGINX with IPinfo for Access Control and Privacy Policies

How accurate is IPinfo's IP address location: verifying IP data accuracy

The geolocation process of IPinfo is largely based on our evidence-based process of probing IP addresses. The probe-based IP geolocation process results in highly accurate IP address location data that can also be verified by users. We run our IP geolocation processes daily, ensuring fresh and accurate data. Additionally, we have one of the most sophisticated probe infrastructures in the world, spanning 103 countries across 6 continents. Now, let’s talk about the evidence of this accuracy claim

IPinfo Team

IPinfo Team

Internet Data Expert

How accurate is IPinfo's IP address location: verifying IP data accuracy

Complete guide on using IPinfo’s API and data downloads in Java

In today's digital landscape, extracting IP address meta-information, such as the geographic origins of online activities, identifying anonymous IP addresses, and retrieving network-level metadata from IP, has a wide range of applications. Whether it's to enhance user experience, bolster cybersecurity measures, or add sales and marketing intelligence data, IPinfo's IP data unlocks a new dimension of insight. In this blog post, we will dive into the seamless integration of IPinfo's powerful API

IPinfo Team

IPinfo Team

Internet Data Expert

Complete guide on using IPinfo’s API and data downloads in Java

IP Data Enrichment: 4 Ways To Add Insights To Your Logs

One of the most common operations to gain insights from IP addresses logged in a system or server log is to enrich them with IPinfo’s data. You can enrich your IP log with IPinfo’s API or database services that include IP to geolocation, IP to privacy detection, IP to company information, IP to mobile carrier information, and more. However, even though at first glance this process might feel straightforward, there are a few tricks as you may have a huge log of IP data. Plus, our databases are q

IPinfo Team

IPinfo Team

Internet Data Expert

IP Data Enrichment: 4 Ways To Add Insights To Your Logs

How To Get IP Data And IP Geolocation In C# With IPinfo

In this article, we will look into how to get started with getting IP address information (including IP geolocation) using the IPinfo C# / .NET SDK in a C# project. Whether it be a web application development using the ASP.NET framework, developing a backend service using the C# language or even in-game development using Unity, IPinfo’s IP address data is essential in IP data enrichment, cybersecurity, and fraud prevention. Installing the IPinfo Library If you want to integrate IPinfo’s API s

IPinfo Team

IPinfo Team

Internet Data Expert

How To Get IP Data And IP Geolocation In C# With IPinfo

Using IPinfo’s Pipedream Integration to make an IP geolocation logger

IPinfo is now on the Pipedream platform [https://pipedream.com/apps/ipinfo_io]. You can easily connect IPinfo to thousands of APIs, apps, and data sources with a few clicks of a button. By combining IPinfo’s data and Pipedream’s service, get IP data and insights without writing any code. What is Pipedream Pipedream [https://pipedream.com/] is a no/low code platform that allows users to connect different APIs, applications, and data sources. Pipedream also includes the ability to use your favori

IPinfo Team

IPinfo Team

Internet Data Expert

Using IPinfo’s Pipedream Integration to make an IP geolocation logger

IP geolocation in Go with IPinfo

Let’s GO with IPinfo! Starter guide on using IPinfo services on Go. First, let’s get ourselves that IPinfo Token Let’s get started with the simple thing and sign up for IPinfo’s services. You get 50,000 IP geolocation requests/month on the free tier alone. The process is simple: 1. Signup by visiting this link: https://www.ipinfo.io/signup 2. Go to your dashboard and copy your account token or, visit: https://ipinfo.io/account/token And now that you are good to go. Setting up the Go p

IPinfo Team

IPinfo Team

Internet Data Expert

IP geolocation in Go with IPinfo

Migrating from MaxMind to IPinfo

When it comes to IP geolocation, privacy/VPN detection, IP to ASN, IP to Company or any kind of IP address information needs, IPinfo stands out from the rest of the IP data providers. In reliability, accuracy, ease of use and dedicated support, IPinfo is the shinning star of the IP information industry. That is the reason why we receive an incredible amount of inquiries about how to migrate from <insert_data_provider_name> to our IPinfo databases and API services. Our data experts are happy to

IPinfo Team

IPinfo Team

Internet Data Expert

Migrating from MaxMind to IPinfo

IPinfo CLI: Lookup IP or ASN details

The official IPinfo CLI is just one of the ways we prioritize developers and their work. In 2021, we shared a broad overview [https://ipinfo.io/blog/ipinfo-cli-overview/] of the commands you can use within our CLI. We also shared a guide about how to filter IPs [https://ipinfo.io/blog/how-to-filter-ips/] using [grepip](<https://github.com/ipinfo/cli/releases/tag/grepip-1.1.0>), a specialized version of grep that gives developers more flexible filtering options. Now let’s talk about IP and ASN

IPinfo Team

IPinfo Team

Internet Data Expert

IPinfo CLI: Lookup IP or ASN details

Ingesting IPinfo geolocation data with PostgreSQL 13

We continue the series of interesting blog posts written by industry experts, including marketers, analysts, developers, and other professionals. NetSPI recently launched its Attack Surface Management [https://pardot.netspi.com/l/427532/2022-03-18/2mky7j] offering to continuously monitor and penetration test networks for the world’s most prominent organizations. To help identify new and changing IP addresses across our clients’ global attack surfaces, we partnered with IPinfo to ingest their Ge

IPinfo Team

IPinfo Team

Internet Data Expert

How to privacy-proof your online targeting

Adtech is powered by data. But despite the fact that Adtech companies rely on these insights to survive and thrive, GDPR [https://gdpr.eu/] and other regulations are gradually eliminating data sources [https://ipinfo.io/blog/3rd-party-cookies-removal-data-collection/]. The long and short of it is this: privacy concerns are changing the way organizations use data. And forward-looking Adtech companies - companies who need insights to target ideal customers, develop AI, or improve online persona

IPinfo Team

IPinfo Team

Internet Data Expert

How to privacy-proof your online targeting

App Engine to Google Kubernetes Engine - a journey

IPinfo's data breadth and depth empower companies and initiatives of all sizes to implement various use cases from complex threat intelligence for Cybersecurity [https://ipinfo.io/use-cases/cybersecurity] organizations to web personalization for Ecommerce [https://ipinfo.io/use-cases/ip-data-for-ecommerce] companies. More than 40 billion requests are served every month for customers with various plans, from Free to Premium to Enterprise. Over the years IPInfo relied on Google AppEngine to run

IPinfo Team

IPinfo Team

Internet Data Expert

App Engine to Google Kubernetes Engine - a journey

IPinfo CLI: How to filter IPs

We recently released the official IPinfo CLI [https://ipinfo.io/blog/meet-the-official-ipinfo-cli/]. With features from bulk lookups to summarizing details for up to 1000 IPs, it allows users to query our APIs more quickly. But along with that, our CLI also includes a handy command called grepip for IP filtering. grepip use cases This tool helps find IPs in arbitrarily large texts and can also help clean up an IP list into usable datasets. Here are several example use cases of grepip: 1. Vie

IPinfo Team

IPinfo Team

Internet Data Expert

IPinfo CLI: How to filter IPs

Getting started: a step-by-step guide for IPinfo users

Ever since 2013, IPinfo has been empowering industry-leading companies with accurate IP address data. Our goal is to give you all the IP information you need without any of the headache. So if you’re new to IPinfo or simply curious about what the user experience looks like, then you’ve come to the right place. This simple, step-by-step guide makes our features accessible to all users. 1. Visit the dashboard For first-time users, the dashboard is a must-visit page, and here’s why: 1. You ca

IPinfo Team

IPinfo Team

Internet Data Expert

Getting started: a step-by-step guide for IPinfo users

How to get IP geolocation in PHP with IPinfo API

There are many ways to use geolocation data, from personalizing website experiences to improving matchmaking in online games. For instance, you can easily change the content of a website page based on the visitor's country. The IPinfo Geolocation API makes it's easy to get started. The premise of using an API relies on making requests. However, every programming language has its own way to make a request, from built-in functions to libraries to make things even easier. Here, we're going to sho

IPinfo Team

IPinfo Team

Internet Data Expert

How to get IP geolocation in PHP with IPinfo API

How to create a simple rate limiter in Node.js?

As your website/app grows, it inevitably becomes a target of malicious agents—bots and spammers. These bots often try to scrape all your data, brute-force logins, or use fake credit cards for purchases, which can lead to revenue losses in the future. A simple and yet, effective strategy to mitigate malicious agents is rate limiting. In simple words, rate limiting puts a cap on the number of requests a user can make in a specific time period. The cap is set to filter out the bots without blockin

IPinfo Team

IPinfo Team

Internet Data Expert

How to create a simple rate limiter in Node.js?

How to prevent localized pricing policy abuse

It’s no secret that localized pricing can boost conversions, especially with ever expanding global markets. Streaming services, Ecommerce, FinTech, to name a few, all benefit from customized price tags. However, while this personalized touch offers a wealth of revenue opportunities, there’s also another side, and that’s this: customers can try to bypass these policies to pay less. The good news is that companies can take steps to prevent this abuse and protect their revenue. What is localized

IPinfo Team

IPinfo Team

Internet Data Expert

How to prevent localized pricing policy abuse

Use IP Location To Determine Pricing, Currency And Shipping

From healthcare to ecommerce, customer experiences play an ever-increasing role in revenue growth. What this means is that quality of online services and content really matters. Like gasoline in a car, IP geolocation data fuels website personalization from start to finish. For instance, not only does this data reveal buyer insights, but businesses can also customize better pathways to site conversions. Let’s take a look at just three important (but often overlooked) website features that affec

IPinfo Team

IPinfo Team

Internet Data Expert

Use IP Location To Determine Pricing, Currency And Shipping

How to: geolocation-based redirect in JavaScript

JavaScript frontend integration is one of IPinfo's most popular integration methods. It is easy to setup and helps you customize the experience for your users within a few hours. In this post, we'll try to build one such integration using some best practices. To get started, please logon to IPinfo.io [https://ipinfo.io/account/login] and create an account to get started. Our free account has 50,000 API requests, making it perfect for starting out. Our API, however, can scale to billions of requ

IPinfo Team

IPinfo Team

Internet Data Expert

How to: geolocation-based redirect in JavaScript

Using IPinfo Geolocation API in GTM

Designed with marketers in mind, Google Tag Manager (or GTM as it is popularly known) allows companies to implement tracking and user customizations for website users. But while GTM is used extensively by marketers, in itself, it's simply a tool - a tool that can be improved by added data. Since users' geolocation is a very important data point used by marketers to target their users and GTM doesn't provide accurate location information about the user directly, many campaigns can be improved by

IPinfo Team

IPinfo Team

Internet Data Expert

Using IPinfo Geolocation API in GTM

What is a geofeed and how to set up one?

Since IP address information can affect everything from customer service to pinpointed marketing to personalized consumer experiences, many brands want a way to communicate updated prefixes with our team. For Internet Service Providers (ISPs) especially, sharing data can positively impact the kind of location-dependent content and services their users can access. Sound time consuming? Luckily, there’s an efficient way to communicate IP changes when needed. In one word, it’s called a geofeed.

IPinfo Team

IPinfo Team

Internet Data Expert

What is a geofeed and how to set up one?

How to automatically detect and select visitor’s country

Say that you’re starting a new website or want to make the current one better. There’s one thing you’re certain about — you want the website converting visitors at the highest rates possible and providing good user experience for every website visitor. There are many ways of web personalization that can help you achieve these two goals but today we will focus on one of the most important — country-based personalization. Why You Might Need to Change Your Website Content Based on Visitor Countr

IPinfo Team

IPinfo Team

Internet Data Expert

How to automatically detect and select visitor’s country

How to painlessly calculate the distance between two points

Measuring the distance between two sets of coordinates is a more complex problem than it might initially appear, and there is a surprising number of different solutions. Here we review some of them. Why does this matter? Providing a personalized experience to your users is more important today than ever. All users are starting to greatly value and appreciate tailored online experiences, and every online business is out to lure these customers into their pages. By calculating the distance betwe

IPinfo Team

IPinfo Team

Internet Data Expert

How to painlessly calculate the distance between two points

The ultimate guide to personalizing by location for e-commerce sites

A personalized landing page grabs your visitors’ attention. Showing exactly what they need immediately, instead of making them dig around for it, makes the purchasing process as easy as possible — and leads them to conversion. But 40% of marketers [http://www.marketingcharts.com/online/what-are-personalizations-biggest-challenges-and-opportunities-44336/] say their biggest challenge is getting enough data to personalize in time to encourage a purchase. With so many choices online, when custome

IPinfo Team

IPinfo Team

Internet Data Expert

How to filter bot traffic

The free plan of our IP geolocation API [https://ipinfo.io/products/ip-geolocation-api] is limited to 50,000 requests per month, and the pricing of the paid plans [https://ipinfo.io/pricing] is based on higher monthly request volume. One simple way to reduce your request volumes and squeeze some extra value our of our API is to avoid doing lookups for known bots, such as the Google or Bing search bots which crawl websites and can generate a lot of additional requests. Filtering out bot traffic

IPinfo Team

IPinfo Team

Internet Data Expert

How to get full country names

Our API returns ISO-2 country codes instead of country names. Here you can see it returning "US" for a google IP: curl ipinfo.io/8.8.8.8/country?token=$TOKEN US When displaying the country to the user you might want a full country name rather than the country code though. You can do this by using one of the mapping files from country.io. The country names JSON file has a mapping from codes to English names. Here are the first few lines from that file: { "BD": "Bangladesh", "BE": "Belgi

IPinfo Team

IPinfo Team

Internet Data Expert

How to do bulk IP lookups

You can use our batch API to lookup detailed for up to 100 IPs in a single request. If you want to lookup thousands of IPs rather than hundreds of thousands it's probably simpler to just call our normal API for each of the IPs using some common unix command line tools you're able to do bulk lookups. First you need a file that contains all of the IP address you want to lookup, with each IP on a single line. So something like this: 8.8.8.8 8.8.4.4 1.2.3.4 You can then use xargs to do a lookup

IPinfo Team

IPinfo Team

Internet Data Expert

How to replace getCurrentPosition()

Web browsers have offered an in-built geolocation solution for a while, allowing you to get the latitude and longitude (but not place name) for the user's currently location, after prompting the user for permission. In a recent update to their Chrome browser Google have limited the use of this feature so that is only works on secure websites, served over HTTPS. If you try to use this functionality on a HTTP site it won't work for you. In this guide we describe how you can use our API to replace

IPinfo Team

IPinfo Team

Internet Data Expert

How to customize content by country

With our IP geolocation API [https://ipinfo.io/products/ip-geolocation-api] it's possible to detect which country your users are visiting from, and then customize your content based on that, or even block visitors from certain countries. Client side content customization You can use the API's JSONP or CORS support to get the user's location on the client. Here's a javascript example that uses JSONP, and displays a different welcome message depending on the user's country: const request = await

IPinfo Team

IPinfo Team

Internet Data Expert