Skip to content

How to Fix “Ad blockers violate YouTube’s Terms of Service”

Table of Contents

Are you getting an “Ad blockers violate YouTube’s Terms of Service” error?

Here’s the second part of the error “It looks like you may be using an ad blocker”.

Followed by, “Video playback is blocked unless YouTube is allowlisted or the ad blocker is disabled”.

And, “Ads allow YouTube to be used billions worldwide”.

And, “You can go ad-free with YouTube Premium, and creators can still get paid from your subscription”.

In this guide, you’ll learn how to remove, bypass, or fix “Ad blockers violate YouTube’s Terms of Service” on Chrome, Brave, Firefox, and more.

How to Fix “Ad blockers violate YouTube’s Terms of Service”

Ad blockers violate YouTube's Terms of Service

To fix “Ad blockers violate YouTube’s Terms of Service”, you need to connect to a VPN where the error message doesn’t show up like Russia, Israel, or India.

You can also try downloading the uBlock Origin extension and applying some filters.

Fix 1: Connect to a VPN

  1. Enable your existing adblocker (e.g. AdBlock).
  2. Go to protonvpn.com, scroll down, and select “Get Proton Free”.
  3. Select “Continue with free” and create an account.
  4. Follow the on-screen instructions and download Proton VPN.
  5. Connect to a Russia, Israel, or India VPN.
  6. Open YouTube and try watching some videos.
  7. The adblocker that you’re using (e.g. AdBlock) should work.

Note: YouTube does not prevent adblockers in certain countries—so you can connect to the VPN of those countries to bypass the error.

Fix 2: Download uBlock Origin

  1. Remove all existing adblock extensions on your browser.
  2. Download the uBlock Origin extension for Chrome or Firefox.
  3. If you’re on Chrome, click on the puzzle icon.
  4. Select “uBlock Origin” and click on the settings icon.
  5. Click on the “My filters” tab.
  6. Copy and paste the following code:
    • youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)
    • youtube.com##+js(set, Object.prototype.adBlocksFound, 0)
    • youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])
    • youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)
  7. Click on “Apply changes” and try watching some YouTube videos.

Note: By applying these filters to uBlock Origin, both the “Ad blockers violate YouTube’s Terms of Service” error and ads on videos should be gone.

Further reading

How to Fix “Ad blockers are not allowed on YouTube”

How to Fix Instagram Error Code 6296

How to Fix “The audio track in your reel is no longer available” on Instagram