Detect if the user uses a VPN
Today I’m gonna show you how you can check an user’s IP and see if they are using a VPN without any extension and without a limit.
Step 1
Drag 2 web component into your screen.
x2
leave the settings for the first web component.
For the second, put this as url : https://api.ipify.org/
Step 2
This part of the guide is outdated, please see Check if a user is using a VPN - Guide - #5 by ShadowDEV_fr
Go into the blocks screen, and drop the following blocks:
Step 3
It works! Leave a like if this helped you
10 Likes
Taifun
March 10, 2020, 6:34pm
#2
thank you for your contribution!
further reading concerning the services used see here:
http://getipintel.net/
https://www.ipify.org/
Taifun
2 Likes
Yeah, I’ve forgotten to put it on my topic
(btw I love what you do and I day thank you for your extension directory, i’ts very useful, maybe try and put a more “modern” design?)
2 Likes
Mateja
(Mateja)
August 22, 2020, 11:58am
#4
This does not work for me. Returns -5 no matter if I am using a VPN or no
1 Like
Strange seems like they changed their API or smth…
I found another API: https://proxycheck.io/
You can parse the result with the JSON component, and get the “type”
Here with nordvpn:
I am connected to the belgium server, and you can see that in the “type” return “VPN”
(I’m using ubuntu so yeah)
Without a VPN it will output "type": "Residential"
So from this you can check if the value of “type” is a VPN.
1 Like
Mateja
(Mateja)
August 24, 2020, 10:11am
#6
Cool, it works, sometimes. Here’s when I am connected to another server
Their server is probably hosted with Azure
Maybe
Well you just have to test if “type” is “Residential” maybe it’ll work better