Block a software only from Internet

Hi,
How can I Block a software only from Internet,so I can still work with that software?

Go to the firewall tab (select Common Tasks if it isn’t already selected) and click Define a New Blocked Application. Browse to the application, or if it’s running, select it from Running Processes.