How to Limit Wifi Connection to Only One Application?
Use Little Snitch 3 for that.

You can use Automatic Profile Switching for your filter rules depending on the network you are in.

For your specific WiFi just block everything except your browser for that.

https://www.obdev.at/products/littlesnitch/index.html