Block FB and YT to all except...

Hello, I’m new at the forum and in Mikrotik routing.
I blocked Facebook and Youtube via Layer7protocol to all IP’s in LAN.
Now I wont to allow those websites to specific user/ip and don’t know how to do that.
Can you help me?

My MirkoTik is version 3.29

Hello, is it the right version of your Mikrotik??

Please upgrade your router first, then use TLS instead of layer7.

Regards,