Blocking a .dll

Hi
I should lock the internet access of 2 .dll files.
Can you please tell me how to do it? I want to be sure not to make mistakes.

Thanks and bye!