If your computer has a sensor, there is a high chance that Google Chrome is already using is to customize your user experience. In most cases, you can find that a Motion sensor is used by most websites. However, if you want to block sensors for specific sites on Chrome, here is how you can do that. It is possible to allow or block Motion Sensors to be used on particular websites using the Site settings panel, Local Group Policy Editor, and Registry Editor.
How to allow or block Sensors for specific sites on Chrome
To allow or block Motion Sensors for specific sites on Chrome, follow these steps:
- Open the desired website.
- Click on the lock icon in the address bar.
- Select the Site settings option.
- Find the Motion sensors option.
- Choose the Allow option to enable.
- Choose the Block option to disable.
- Repeat the same with other sensors.
To learn more about these steps, continue reading.
First, you need to open the desired website and click on the lock icon visible in the address bar. Then, click on the Site settings option.
It opens the panel where you can find all the permissions you can allow or block for a specific website. You need to find the enlisted sensors. For example, you can find the Motion sensors.
You need to expand the corresponding drop-down list and choose the Allow option to enable and the Block option to disable the sensor for that specific website.
How to allow or block sensors for specific sites on Chrome using Group Policy
To allow or block sensors for specific sites on Chrome using Group Policy, follow these steps:
- Press Win+R to open the Run prompt.
- Type gpedit.msc and hit the Enter button.
- Navigate to Content settings in User Configuration.
- Double-click on the Allow access to sensors to these sites setting.
- Choose the Enabled option.
- Click the Show button.
- Enter the website URL.
- Click the OK button.
- Double-click on the Block access to sensors on these sites setting.
- Repeat the same steps.
Let’s check out these steps in detail.
To get started, you need to open the Local Group Policy Editor. For that, press Win+R > type gpedit.msc and hit the Enter button.
Then, navigate to this path:
User Configuration > Administrative Templates > Google > Google Chrome > Content settings
Here you can find two settings:
- Allow access to sensors on these sites
- Block access to sensors on these sites
If you want to allow the sensors on a specific website, you need to double-click on the Allow access to sensors on these sites setting and choose the Enabled option.
Then, click the Show button and enter the website URL.
Click the OK button to save the change. Similarly, if you want to block sensors on a particular website, you need to double-click on the Block access to sensors on these sites setting and do the same as above.
Finally, restart the Google Chrome browser to apply the change.
How to enable or disable sensors on specific sites on Chrome
To enable or disable sensors on specific sites on Chrome, follow these steps:
- Press Win+R > type regedit > click the OK button.
- Click the Yes button.
- Go to Google in HKCU.
- Right-click on Google > New > Key and name it Chrome.
- Right-click on Chrome > New > Key.
- Set the name as SensorsAllowedForUrls if you want to allow sites.
- Set the name as SensorsBlockedForUrls if you want to block sites.
- Right-click on it > New > String Value.
- Name it as 1.
- Double-click on it and enter the website URL.
- Click the OK
- Restart your computer.
Let’s delve into these steps in detail.
First, press Win+R > type regedit > click the OK button and click on the Yes option to open the Registry Editor on your computer.
Then, go to this path:
HKEY_CURRENT_USER\Software\Policies\Google
Right-click on Google > New > Key and name it Chrome.
Then, right-click on Chrome > New > Key. If you want to allow specific sites, enter the name as SensorsAllowedForUrls. If you want to block specific sites, enter the name as SensorsBlockedForUrls.
After that, right-click on this key > New > String Value and set the name as 1.
For your information, if you want to enlist multiple sites, you need to create another String Value named 2, and the list goes on.
Once done, double-click on the String Value and enter the website URL.
Click the OK button, close all windows, and restart your computer to get the change.
Chrome flag for Sensors
For your information, the flag for the Generic Sensor Extra Classes is located here:
chrome://flags/#enable-generic-sensor-extra-classes
You can select Enabled or Disables based on your requirement.
It enables an extra set of sensor classes based on Generic Sensor API, which exposes previously unavailable platform features, i.e. AmbientLightSensor and Magnetometer interfaces.
How do I allow only certain websites to block in Chrome?
Earlier, it was possible to allow or block certain websites in Chrome using the Local Group Policy Editor. However, that setting was deprecated a long time back. Now, you can follow this guide to allow or block websites in Chrome.
How do I unblock certain websites on Google Chrome?
If you have the old Group Policy template alongside the old version of Google Chrome, you can do that using the Local Group Policy Editor. For your information, the same thing can be done with the help of the Registry Editor as well. However, if you have used an extension or any other script, you can go through that to get the job done.
That’s all! Hope these guides helped.
Read: How to allow or block Google Chrome from opening PDF files externally.