Temporarily simulate being offline programmatically
You can set $AllowInternet
to False
(or just turn off your WiFi or unplug the cable).
A general solution for Windows is to run an application (such as Mathematica) inside a Sandboxie sandbox, for which Sandbox Settings > Restrictions > Internet Access has been set to "No program can access the Internet."