How to block certain sites when VPN not connected?

Howdy, I have a set of sites I want to be blocked UNLESS I have my VPN (Nord) running.
The only way I can think of doing this atm is with a .bat file on the desktop that switches between two different hosts files and then launches nord, so by default the hosts file blocks the sites, when I launch nord (via the .bat file) it switches to the hosts file allowing them and launches nord.
Is there any way more elegant?
Thanks!

I may be wrong, but I think your Router can block specific sites of your choosing. When you use VPN it should be able to bypass the block. You can find your routers settings by typing “ipconfig” into command prompt, then copying the “Default Gateway” and pasting it into your browser. It will ask you for a username and password, you can google what password and username your routers brand uses. I think NetGear uses User = admin and Psswd = password.

I think since https is mandatory now, site blocking at the router is useless.

You could try one of those applications that schools and businesses use to block sites if you dont like doing it on the router.

This link has a guide, you can block keywords and domains. It should work.