Tutorials

Tutorials and recipes for using IP intelligence effectively — from how to detect VPN users to how to detect malicious IP addresses.
Tutorial

How to use IPLocate with OPNsense

OPNsense is an open-source firewall and routing platform. Learn how to use IPLocate’s free and accurate geolocation data to power your OPNsense firewall rules.

IPLocate Team
July 05, 2025
Tutorial

How to detect VPN users on your website

Learn how to detect VPN users on your website using the IPLocate API. Useful for fraud prevention, geo-restrictions, and threat detection.

IPLocate Team
March 16, 2025
Tutorial

How to detect hosting providers by IP address

Learn how to detect whether an IP address belongs to a hosting provider like AWS, Azure, Google Cloud, or hundreds of others.

IPLocate Team
March 15, 2025
Tutorial

Blocking malicious traffic and bots with IPLocate

Learn how to detect and block bots, scrapers, and abusive IPs using IPLocate's IP intelligence API. Practical techniques for threat detection, hosting provider identification, and dynamic response strategies.

IPLocate Team
February 28, 2025
Tutorial

How to redirect users by country with JavaScript

Learn how to use JavaScript and the IPLocate IP geolocation API to redirect users based on their country.

IPLocate Team
June 24, 2024
Tutorial

How to automatically detect and select a user's country

Learn how to personalize your website by detecting the visitor’s country using IP geolocation with the IPLocate API.

IPLocate Team
June 20, 2024
Tutorial

How to show a local weather forecast using IPLocate and OpenWeatherMap

Learn how to display personalized weather forecasts on your website using the free IPLocate and OpenWeatherMap APIs. Snippets for Javascript, PHP, Python, and Ruby.

IPLocate Team
December 30, 2021
Tutorial

Replacing getCurrentPosition() with IP-based geolocation

Learn how to replace getCurrentPosition() with IP-based geolocation.

IPLocate Team
June 11, 2020