How to block one software from internet and allows it on intranet

I do not want that an application connect to internet. But I need to print/scann on a network printer on my intranet and would like to allow that software to access to that printer. I have a router at
How can I do ?
Thanks a lot to the one who try to help me.


Windows 10 64bits / Comodo Firewall version

Create a new global rule as follows: Action=Block Direction=Out Protocol=IP Source address=Any Destination Address=check Exclude (i.e. NOT choice below) network zone: your home network zone IP details=Any

Thanks a lot for your help. I will try that.
Best Regards