How can I block users of brave browsers accessing my website?

Hi, I am a website owner.
I am currently using Ezoic to monitize my ads.
I don’t want users of brave browser to access my site.
I can do it by cloudflare but i am not sure what is Braves user agent.
How can do so?

What about other browsers with ad blockers, or with an ad blocking add on?

Your business model is doomed to failure.
Everybody blocks ads these days, even Microsoft. :sunglasses:

Blocking user agent might not work. Currently, they have started the process of randomizing http headers, fonts and languages. Sooner or later, they will start randomizing user agent. https://github.com/brave/brave-browser/issues/20096 https://github.com/brave/brave-browser/issues/816. The development for them seems to have stopped, but possibly start again.

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

This is for linux, you will need to find for windows, macos, android yourself if others do help you.

You can use adblock detector script .

Simple JavaScript stop user who not seeing ads…

Any browser any platform

Afaik, ad-blockers have gotten good that they can bypass such scripts. Sometimes, they do not then the particular ad-blocker list needs to be tweaked for the particular site.

1 Like

Try this

https://reek.github.io/anti-adblock-killer/

2 Likes

I have added this list to my Brave ad blocker.

https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt

Normally I leave it unchecked to avoid bogging things down because it is usually not needed, but for the occasional problem site it goes back on.

As far as I’m concerned, it’s an arms race, and for the moment at least, the good guys are ahead. :sunglasses:

3 Likes