This guide covers how to detect VPN, proxy, TOR, and bot IP addresses in PHP using cURL and the Focsec API.
Perfect for protecting login pages, checkout flows, or any endpoint where you need to identify anonymous visitors.
Check an IP for VPN or proxy
Use cURL to make a request to the Focsec API.
Sign up here to get your free API key.
API Response
You'll get back a JSON object with detection results and geolocation info:
Detect suspicious IPs
Create reusable functions to check IPs and detect anonymous traffic:
Block VPNs on sensitive pages
Protect login or checkout pages by blocking anonymous connections:
Next steps
Your PHP application can now detect and block VPN and proxy users. Check out the API Reference for all available fields and options.
Sign up for a free account and start detecting VPNs, proxies, and bots in your application.
Get your API key »