A small PHP web page printing if you're using a VPN. It may help users understand/see if they are connected.
Find a file
2023-08-16 09:39:02 +02:00
index.php Create index.php 2023-08-16 09:38:04 +02:00
LICENSE Initial commit 2023-08-16 09:29:03 +02:00
README.md Update README.md 2023-08-16 09:39:02 +02:00

vpn-checker

A small PHP web page printing if you're using a VPN. It may help users understand/see if they are connected.

How to use

It is very stupidly written. This script will also look for X-Forwarded-For header for when you use a Reverse Proxy for example or CF-Connecting-IP if using CloudFlare. You need to change IP1 and IP2 in the file with proper IPs. You can also add some other IPs in the switch.

Caution

You might need to change the CSS bootstrap line and change its hash depending on the version you're using.