You have the option to block websites from asking for your location however, that’s not the only annoying thing that modern browsers allow websites to do. In fact, most websites, including YouTube, will not ask for your location but for permission to show you notifications.
Web notifications has its pros and cons. Granting permission to a website to show you notifications may be abused. Some sites may spam you by displaying text advertisements on those notifications. If you don’t want to ever allow sites to show you notifications, you can easily turn off this feature on your browser’s settings.
Disabling Push Notifications in Google Chrome
STEP 1: Click on the menu icon (three vertical dots) located at the upper-right corner of the address bar, then select Settings.
STEP 2: In the Settings tab, scroll down to the bottom of the page, and then click on the Advanced button.
STEP 3: On the Privacy & Security section, select Content settings.
STEP 4: When the Content settings tab opens, scroll down to the Notifications section, then click on it.
STEP 5: Click the switch next to the option Ask before sending (recommended) to turn it off.
NOTE: Here you will also see a list of the sites that often ask you to allow push notifications and another list of the sites you have already granted permission to send you notifications.
STEP 6: To disable notification access to any website you have already granted permission, click on the three vertical dots to the right side of the site’s URL, then select Remove to revoke the permission.
Disabling Push Notifications in Mozilla Firefox
Unlike Google Chrome, Firefox doesn’t have a dedicated option to stop websites from sending push notifications. However, it does have a “Do Not Disturb” option that blocks all kinds of notifications when enabled, until you restart Firefox. To activate this feature:
STEP 1: Type “about:preferences#content” in the browser’s Address bar, then hit [Enter].
STEP 2: Check the Do not disturb me box to disable all notifications.
But if you want to stop some websites from disturbing you with notification pop-ups permanently, you will need to change the settings from the hidden about:config page of Firefox. Here’s how:
STEP 1: Type “about:config” in Firefox’s address bar, then press [Enter].
STEP 2: When prompted with a warning message, just click on I accept the risk to continue.
STEP 3: In the Search field, type “Notifications” then look for dom.webnotifications.enabled under the Preference Name list (it’s value is set to True by default).
STEP 4: Double-click on it to set its value to False.
NOTE: This action will disable all web notifications. Firefox doesn’t give you the option to grant permission to some sites; this feature affects all sites.
Disabling Push Notifications in Microsoft Edge
Microsoft Edge gained support for push notification in the Windows 10 Anniversary Update. Unfortunately, Edge does not offer the option to disable push notifications entirely. The only thing you can do is to click “No” whenever a site asks for permission to show notifications. The good thing is that Edge will remember your preferences and will not prompt again for those sites you deny access. However, new sites will still bug you with permission requests.