Unfortunatly there is no option in w3m to put it in offline-mode. But you should be able to remove access to the network for the w3m (or any other) process by starting it like like this:
unshare -r -n w3m
This effectively removes the networknamespace for the processes thus turning it incapable of requesting anything.
Check out this related Question for details