Block all internet traffic by default and add manual exceptions

Hello,

I would like to block all my internet traffic by default and then I want to add programs manual which needs the internet. I have already created a custom rule which blocks all my inbound and outbound connections:

rule.pngBut how can I now add program exceptions, because I don't want to add IP's just programs?

Or is there even a better way to achieve what I want?

Regards,
P4assion