• wahming@monyet.cc
      ·
      edit-2
      11 months ago

      I would downvote that crap too. Contributes nothing to the discussion, waste of time and screen space. That's the comment equivalent of banner ads

  • Aria@lemmygrad.ml
    ·
    11 months ago

    Adblock users optimise their adblockers to be invisible to adblock-checking code. If your site works well, and is worth visiting, the only change in behaviour you can inspire is people nerfing their own adblockers.

    • araozu@lemm.ee
      ·
      11 months ago

      Do they? I remember not long ago I just had to have an ads.js file, and if the user had an adblocker this file wouldn't load.

      So I just had a

      var ads_enabled = true;
      

      And I could check if the user had an adblock.

      I think most people just install ublock/others and leave it default. When I tried to customize ublock all those lists and regex pushed me away, never tried again since.

      • Phen@lemmy.eco.br
        ·
        11 months ago

        Ads can mean many things. It could be short for something (for example Active Directory Settings). I remember getting something legitimate blocked like 10 years ago but nothing in recent years so I imagine the detection got better at dealing with that.

    • nik0@lemm.ee
      ·
      11 months ago

      how is that possible because I'd like to know how to do that in general?

      • Aria@lemmygrad.ml
        ·
        11 months ago

        Step one is you don't refuse files from the server, and try to answer as if you have them when asked in js. But the current actual methods and arms race is happening by comparing computed results, how your page is rendered according to your own browser when probed, vs how the detection code expects it rendered. Adblockers do things like lie, or inject things that can look close enough to ads that you pass the tests. You can see how detection works and try to sidestep what it does by looking at libraries like these https://github.com/sitexw/FuckAdBlock

        This one in particular will probably just not run in uBlock out of the box so this one's pretty easy to sidestep. But you can stuff code like this obscured in your site and another piece of code that checks that it hasn't been removed. It's pretty difficult for website develops to win this fight, since ultimately they're letting us download and render their pages with fairly transparent technology.

  • faintedheart@lemm.ee
    ·
    11 months ago

    People will decide what is best for them. Blocking access to websites for having ad blocker or having no ad blocker is an asshole move. I know it is intended for pun, but still.

      • faintedheart@lemm.ee
        ·
        11 months ago

        Encouraging and forcing is different. Just because forcing ad blocker on people is aligned with so many people's view doesn't mean that it is a great move. Anything that is forced on people is an asshole move.