Detect Adblock on Your Web Page, Save Your Users from Running Away
👨👨👧Plugins like AdBlock, Adblock Plus and many more are amazing tools to prevent from getting spammed.
- Not able to sign in from a custom OAuth (like Google, Facebook, Github)
- Your own server API calls getting blocked and the user thinks that there's a bug on your page
- 3rd party services' API calls getting blocked
How I solved it was by detecting if there's an adblock enabled on my domain and showing the user a message to turn it off for a better experience. Well, that's the max I could do for now.
Let's take a look at the steps...!😛