subverting adblock detection? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionSeveral questions concern how to detect adblock use, but I couldn't find any that explained how to subvert detection?
Personally, I don't find it appropriate to bypass ad blocking detection, though I know that others may have different viewpoints. If a site doesn't want to offer you their content without you displaying their ads (perhaps their only way of paying for the site), then that seems to me to be their prerogative and if they go to the trouble of detecting the ad blocking, then it seems that that is their right.
That said, there are a number of different ways that they could be detecting that you're blocking their ads. Some could be complicated enough that you couldn't simulate that you had the ads when you didn't. For example, if you are blocking flash and they are trying to communicate with a flash object to verify that it's there, you'd have to simulate that it was really there and that could be quite difficult. If their detection logic was a lot simpler, then it might be possible to fool it with some sort of simulation. But, I suspect this would just be an arms race and if any significant number of folks foiled their blocking detection, they'd just make it more sophisticated.
In that case, all you could do it try to figure out how to patch their actual javascript detection code directly to make it return a false answer. How you would do that would vary from one site to the next and any solution would have to be coded for a specific site. I wouldn't recommend it.
精彩评论