# How to programatically disable internet connectivity

Internet connectivity may cause slows evaluations or cause unexpected problems (particularly in GUIs) when working in an environment with slow Internet or no Internet access at all. I know how to stop the Internet connectivity using the Preferences menu (Allow the Wolfram System to access the Internet) but I want to know if there a way to stop Internet connectivity programmatically.

• $AllowInternet = False ? – Szabolcs Jan 25 '18 at 0:05 • This certainly works as well as the CurrentValue approach. It would be nice to know if there is any difference between the two approaches. – Ariel Sepulveda Jan 29 '18 at 16:05 • Good question, I do not know (you could ask Carl). But I noticed that once setting CurrentValue[$FrontEnd, "AllowDownloads"], it will also set $AllowInternet. The reverse it not true. – Szabolcs Jan 29 '18 at 17:56 ## 1 Answer You can use: CurrentValue[$FrontEnd, "AllowDownloads"]=False;


to disable the "Allow the Wolfram System to access the internet" preference.

• It might be better to do this on the $FrontEndSession (if possible) – b3m2a1 Jan 25 '18 at 4:58 • Do you know how your approach differs from$AllowInternet=False? – Ariel Sepulveda Jan 29 '18 at 19:00
• One bit of information I found is that to use SendMail both parameters need to be set to True. – Ariel Sepulveda Jan 30 '18 at 22:33