how do i block all website and allow whatsapp ?

Hello everyone ..!

I wanna know how do i block all websites and only allow Whatsapp but i want it for specific range ip
I mean i have users login with full access internet and i want to create users just for Whatsapp access …

please help me..