How to temporary prevent internet connection for programms? Run in sandbox?

Can I bе sure Sandbox does not allow any connections?
And I have many *.htm files saved from internet (for example a topic from our forum)
When I open its all of them start go to internet. How to prevent this? Which browser can do that?
Even I open its in editor (not in browser.)