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

Hello,
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 192.168.0.1
How can I do ?
Thanks a lot to the one who try to help me.
Regards

Jean

Windows 10 64bits / Comodo Firewall version 10.0.0.6092

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

Jean