Do this thing.
Type: Posts; User: IzNoGoD
Do this thing.
It gets the ip with which the client connects to the server. So if he's behind a vpn, it will show the vpn's ip.
Use getip() and some online service to determine wether or not that ip belongs to a vpn provider.