In this guide, you'll learn how to identify VPN, proxy, TOR, and bot traffic in your Go application using the Focsec API and Go's standard library.
We'll cover everything from making your first API request to building a reusable detection function.
Define the response struct
Create a struct to parse the API response:
Check an IP for VPN or proxy
Make an API request to detect VPN and proxy IPs.
Need an API key? Create a free account to get started.
API Response
You'll receive a JSON response with security flags and location information:
Detect suspicious IPs
Add a method to check if an IP is using any anonymization:
Next steps
Your Go application is now equipped to detect VPN and proxy traffic. Visit the API Reference for the complete list of response fields.
Sign up for a free account and start detecting VPNs, proxies, and bots in your application.
Get your API key »