AdBlock Detecter Flutter Web

GitHub followers


  • Browser extensions detection (like AdBlock, Adblock Plus, uBlock, etc.)
  • Brave browser shields detection
  • Opera browser adblocker detection

Use this package as a library

Add this to your package's pubspec.yaml file:

  adblock_detecter: ^0.1.0

You can install packages from the command line with Flutter:

$ flutter pub get

Import in your project:

import 'package:adblock_detecter/adblock_detecter.dart';

Sample Usage

detectAnyAdblocker()Future(detected=true/false)perform all available checks below until at least one is positive
detectDomAdblocker()true/falsedetect if a browser extension is hiding ads from the DOM
detectBraveShields()Future(detected=true/false)detect if Brave browser shields seems to be activated
detectOperaAdblocker()Future(detected=true/false)detect if Opera browser adblocker seems to be activated