sitexw/FuckAdBlock

Detecting Adblock when there adblock is disabled?

KyogoBlog opened this issue · 11 comments

https://kyogo.me/adblock

I copy and pasted the code. I don't know why it keeps saying adblock is detected when it is not.

For me, it works. You use what exactly blocker?

pyper commented

I have seen something similar before. What happens is some CSS framework, or JS Framework, graphic change to make the page load pretty, etc. Sets the body elements to display none or visibility hidden for a fraction of a second, thus causing a false positive. It then removes the CSS as the page continues to load. The funny thing it is more pronounced when the browser is fast. For example, Safari is very fast and may get the problem there, but not in FF or Chrome. Anyhow do this to test it:

  1. Open up a console. It slows down the page load enough that you can verify it is a problem caused by a temporary CSS state.

  2. Put in a event to test for a false positive as soon as you can. So first chance you can manipulate the DOM grab any child of body and see if it has display none or visibility hidden and output a alert or console.log indicating so. It will likely catch it fast enough to tell you that was the issue.

So I think it is beta v4 that is not working!
I use the regular adblock. https://getadblock.com/

Beta v4:
https://kyogo.me/adblockv4

Original:
https://kyogo.me/adblock

In this case, I think this is normal because the file "fuckadblock.min.js" does not exist :
image

Fixed it. Now I will try to work out the integrity for maximum secrurity

Great ! Yes, I advise you very strongly integrity system, it can secure better detection.

Do I need to change the SHA code for my website or do I keep it the same?

As long as the file does not change one character, you have to keep the same SHA. The server or name web site, has no impact on the SHA.
But if by chance, you want to compress the file (mimify) that would remake the SHA on this site : https://www.srihash.org/

Got this error with the maximum security.

screen shot 2016-09-27 at 2 38 18 pm

This one works for me (for fuckadblock.min.js 4.0.0-beta.3) :

integrity="sha384-oiO90JrGr6v49XI21iWwrxl1QY51C48/8D/qofKneFlKcV64YuSuug2GdqrdefBo"

You are awesome! It works ! Thanks so much 👍