Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable automatically browser opening on Wi-Fi hotspot connection for Win10?

When I connect my laptop to a free/public Wi-Fi hotspot (FreeWifi, Orange...), Windows 10 opens automatically my default Web browser and goes if possible to the ISP captive portal. So each time I connect to the Wi-Fi SSID my browser is opened.

Quite good for a normal usage, but not for web browser testing!

How can I disable the action that opens the browser each time I connect to the Wi-Fi hotspot ?

like image 802
Rasta 29 Avatar asked Apr 19 '17 09:04

Rasta 29


People also ask

How do I lock my hotspot on Windows 10?

To better assist you, please follow the steps on how to turn off mobile hotspot on your Windows 10 device: Open Settings, click Network & Internet icon. Click / tap on Mobile Hotspot on the left side, and turn off Share your Internet connection with other devices.

How do I turn off Wi-Fi links?

Right-click the Wi-Fi icon in the Windows notification area and select Disable (or Turn off) from the pop-up menu. If no Disable option is available in the pop-up menu, there may be an option called Open Network and Sharing Center. If so, select this option and then select Change adapter settings.

What is auto join hotspot?

Phones that have the auto-join function enabled are configured in a way that, if a person manually connects to a network for the first time, the device will connect to this network automatically every time it is in range.

How do I stop Windows 10 from automatically connecting to the Internet?

Use Settings Click Start, then head to Settings >Network & Internet. From the left pane menu, select Wi-Fi. Click on the Wi-Fi connection you are currently using. Turn off the toggle below Connect automatically when in range.


3 Answers

One solution I found is to modify directly a Windows regitry :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing

And to do it from a Batch script, I purpose this :

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v EnableActiveProbing /t REG_DWORD /d 0 /f
  • REG ADD : add/modify a registry;
  • Then specify the repository of the registry;
  • /v EnableActiveProbing : indicates the value to modify;
  • /t REG_DWORD : indicates type of value;
  • /d 0 : gives the data to add;
  • /f : to force changes.

(More help with REG ADD /h)

It works fine on Windows 10 with admin rights. Hope it will help some people.

like image 53
Rasta 29 Avatar answered Sep 30 '22 20:09

Rasta 29


By changing EnableActiveProbing to 0 actually leading wifi adapter to show not connected but by changing ActiveWebProbeHost www.msftncsi.com To www.google.com fixed auto opening browser when we enable wifi and not showing any error.

like image 44
Max MJ Avatar answered Sep 29 '22 20:09

Max MJ


I'll suggest the following short solution for the noobie.

Disable: Save following text to a disable.reg file, and then double-click on it. That will modify the registry accordingly:

Windows Registry Editor Version 5.00 ; Use this if delaying startup of NlaSvc does not work

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet] "EnableActiveProbing"=dword:00000000

Enable: Save following text to a enable.reg file, and then double-click on it. That will modify the registry accordingly:

Windows Registry Editor Version 5.00 ; Use this if delaying startup of NlaSvc does not work

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet] "EnableActiveProbing"=dword:00000001

like image 43
Gopal00005 Avatar answered Oct 01 '22 20:10

Gopal00005