how to block users with ad blockers


Hi, I’m looking for a script that blocks visitors who use an ad blocker browser plugin.

Ideally these users would be seeing a custom message like “disable your ad blocker to browse this website”.

Is there anything like that out there?


Hey there…

For detection you can implement
And for blocking purpose you can implement

One free advice if you don’t mind… I hop you won’t mind… :smile:

Just don’t block user directly, detect user who used addblock, display theme a solid message then take actions based on users response…

Happy Coding Friend. :smile:


Thanks a lot for the links peersolutions & thanks for your advice

have a great day :smile: