Barring connections if VPN is down.
- by Majid
I have a VPN account and use it for sensitive communication. However the VPN connection sometimes is dropped while my main connection to the internet is still alive.
The pages I visit through VPN are on HTTP (not secure) and have javascript code which pings the host every minute or so on a timer. So it happens sometimes that the VPN connection is dropped and yet js sends a request to the server (with the cookies).
How could I restrict connections so they only happen if the VPN is live?
Edit - Some required details were missing
OS: Windows XP SP2
Browser (mostly used): Google Chrome
Firewall: Windows default
Sites to filter: not all traffic but all in a list of sites like abc.com, xyz.com