brave / adblock-lists

Maintains adblock lists that Brave uses
Mozilla Public License 2.0
319 stars 69 forks source link

soft98.ir detects adblocker and prevents from loading page #730

Open fsheidaiee opened 2 years ago

fsheidaiee commented 2 years ago

Hi after latest updates on brave adblocker, many ad elements are removed from the site "soft98.ir". but the site prevents you from surfing pages and it warns you to turn of your adblocker first. please see these links maybe it can help you solve this issue with this specific site: https://github.com/farrokhi/adblock-iran/issues/17 https://github.com/DRSDavidSoft/user-scripts/issues/1 the solution is to use a userscript. but maybe you can solve this without userscript thanks

DRSDavidSoft commented 2 years ago

I'm indeed curious if it's possible to solve this issue without using a user-script.

MasterKia commented 2 years ago

I'm indeed curious if it's possible to solve this issue without using a user-script.

This problem has been dealt with several times in uBO but the s0ft98 admin pulls a trick everytime, such as changing the ads picture's URL from example.com to forum.s0ft98.ir, changing padvish to p4dvish and other stuff; On top of that, in a last-ditch effort they've recently implemented ad-reinsertion.

DRSDavidSoft commented 2 years ago

@MasterKia SIdenote: does my userscript remove ads if they are re-inserted?

MasterKia commented 2 years ago

@MasterKia SIdenote: does my userscript remove ads if they are re-inserted?

Yes, it does. Now that I check, looks like they're reinserting every(?) picture on the page and thus your s0ft98 pirate logo is being replaced by the original logo after a few seconds, which is ... sad; Could you fix it? :P

DRSDavidSoft commented 2 years ago

@MasterKia lol 😁 I just noticed it, it seems that they're restoring the logo back to the original state. Didn't think they'd do such a thing!

I'll push a path to fix the problem, and restore the 🏴‍☠️ flag back!

ryanbr commented 2 years ago

@fsheidaiee trying to reproduce this, loading https://forum.soft98.ir/showthread.php?t=32357 and https://soft98.ir/ seemed fine. and the links. Where is the adblocker bit?

MasterKia commented 2 years ago

Where is the adblocker bit?

Try to block the big banner at the top (پادویش، آنتی ویروس، Padvish) and then refresh the page, this would trigger the anti-adblock inside jquery.js

ryanbr commented 2 years ago

Does adding ||kaprila.com^ into brave://adblock help? @fsheidaiee @MasterKia

fsheidaiee commented 2 years ago

Does adding ||kaprila.com^ into brave://adblock help? @fsheidaiee @MasterKia

no

ryanbr commented 2 years ago

I'm not sure what I'm looking for on the site. Not obvious too me. I've clicked on various links, and its forwarded me to other sites. Maybe a screen record/youtube capture to reproduce it, and what too look for.

MasterKia commented 2 years ago

image

The red banner at the top is an ads, if you try to block it (using network or cosmetic filters), it would trigger the anti-adblock inside the file jquery.js.

ryanbr commented 2 years ago

Try Adding into brave://adblock

soft98.ir##.b7d9x
soft98.ir##.t2oast
fsheidaiee commented 2 years ago

Try Adding into brave://adblock

soft98.ir##.b7d9x
soft98.ir##.t2oast

this led to adblock detection by the site and you cannot open any link in that site after adding those filters. as you see in the picture image

MasterKia commented 2 years ago

it's their custom anti-adblock script detection

Latest version (17): https://soft98.ir/templates/soft98_default/js/jquery.js?v=17

The unpacked and formatted version 12 for examination (Search for b7d9x): https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/soft98-antiadb.js