AdguardTeam / AdguardFilters

AdGuard Content Blocking Filters
https://adguard.com/
GNU General Public License v3.0
3.07k stars 621 forks source link

soft98.ir #126252

Closed adguard-bot closed 2 years ago

adguard-bot commented 2 years ago

Issue URL (Annoyance)

https://soft98.ir/

Comment

Username: @aliafshany

in the second picture you see that I have turned AG off and everything works fine.

Screenshots

Screenshot 1 ![Screenshot 1](https://reports-img.adguard.com/FS1qis3.png)
Screenshot 2 ![Screenshot 2](https://reports-img.adguard.com/ijv1GLx.png)

System configuration

Information value
AdGuard product: AdGuard for Mac v2.9.0.1166 beta
Browser: Chrome
Stealth mode options: Hide your search queries,
Send Do-Not-Track header,
Remove X-Client-Data header from HTTP requests,
Strip URLs from tracking parameters,
Block third-party Authorization header,
Disable cache for third-party requests,
Block WebRTC,
Block Push API,
Block Location API,
Block Java
DNS filtering: server: https://14cd13ae.d.adguard-dns.com/dns-query
filters: https://filters.adtidy.org/mac_v2/filters/15.txt, DnsUserRules
Filters: Ad Blocking:
AdGuard Base

Privacy:
AdGuard Tracking Protection,
AdGuard URL Tracking

Annoyances:
AdGuard Annoyances,
AdGuard Cookie Notices,
AdGuard Popups,
Adblock Warning Removal List

Security:
Online Malicious URL Blocklist,
NoCoin Filter List

Language-specific:
Persian Blocker
Userscripts: Web of Trust (url: https://userscripts.adtidy.org/release/adguard-wot/1.0/wot.user.js),
AdGuard Assistant (url: https://userscripts.adtidy.org/release/assistant/4.3/assistant.user.js),
AdGuard Popup Blocker (url: https://userscripts.adtidy.org/release/popup-blocker/2.5/popupblocker.user.js),
AdGuard Extra (url: https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js)
zloyden commented 2 years ago

Not reproduced with our filters, but it's related to Persian Blocker. @masterkia please fix this.

MasterKia commented 2 years ago

@zloyden

Thanks for letting me know. The site admin changes CSS id/class on a daily basis to circumvent my filters. I'm updating the filters everyday to avoid their anti-adblock.

@zloyden What is the minimum "! Expires: " time that AdGuard supports?

I want the PersianBlocker list to be updated as fast as possible so I set it on "0.5 days". Also if AdGuard has a quick fixes list similar to uBO, I could send daily pull requests (which I do for the uBO quick fixes).

MasterKia commented 2 years ago

Also if a volunteer on AdGuard Extra could write an script to defuse this site's anti-adblock that would be really good.

@DRSDavidSoft has written/maintained a userscript that can defuse this site's anti-adb and removes ads: https://github.com/DRSDavidSoft/user-scripts/raw/master/soft98_ad-unblocker.user.js

zloyden commented 2 years ago

What is the minimum "! Expires: " time that AdGuard supports?

It's 4 days, and unfortunately, we can't change this for now.

Also if AdGuard has a quick fixes list similar to uBO, I could send daily pull requests (which I do for the uBO quick fixes).

It depends on user preference, but our filters can be updated quickly. Also we support this site in AdGuard Extra and I opened the issue there. Thank you for sharing the script, it may be useful.

zloyden commented 2 years ago

@aliafshany you can install the script https://github.com/DRSDavidSoft/user-scripts/raw/master/soft98_ad-unblocker.user.js to our app via settings - extensions. It looks like this works fine with the Persian blocker or wait for fix in our script.

MasterKia commented 2 years ago

Also we support this site in AdGuard Extra and I opened the issue there.

I'll inform you when the extra script needs updating so that the AG Extra team can fix it quickly.

On the other hand, @DRSDavidSoft has tried to make his script bulletproof against circumvention and quickly updates the script if needed (I'm in touch with him so I can notify him asap).

but our filters can be updated quickly.

If you point me to the right list, I can send daily pull requests.

zloyden commented 2 years ago

There is another side to the updates. If the user updates the filters manually or at a low interval (our products have such an option), he will get the new fixes.

MasterKia commented 2 years ago

our products have such an option to update the filters at a low interval

Good.

aliafshany commented 2 years ago

@aliafshany you can install the script https://github.com/DRSDavidSoft/user-scripts/raw/master/soft98_ad-unblocker.user.js to our app via settings - extensions. It looks like this works fine with the Persian blocker or wait for fix in our script.

no luck, I tried that maybe it's better to wait for the official fix thank you both @MasterKia @zloyden

MasterKia commented 2 years ago

maybe it's better to wait for the official fix

I'll push a fix.

aliafshany commented 2 years ago

@MasterKia i appreciate your efforts

MasterKia commented 2 years ago

@aliafshany

It's fixed. Please update the PersianBlocker list in your AdGuard settings.

If this happened again please let me know in this issue or in my repo https://github.com/MasterKia/PersianBlocker. Because this site updates hourly so it's crucial for me to know when it circumvents the filters.

MasterKia commented 2 years ago

@zloyden

https://github.com/AdguardTeam/AdguardFilters/blob/master/EnglishFilter/sections/foreign.txt#L6447-L6451 ُSoft98 already exists in the English Foreign filters. If you grant the permission (just say it's ok), I can send daily Pull requests to those filters.

aliafshany commented 2 years ago

@aliafshany

It's fixed. Please update the PersianBlocker list in your AdGuard settings.

If this happened again please let me know in this issue or in my repo https://github.com/MasterKia/PersianBlocker. Because this site updates hourly, so it's crucial for me to know when it circumvents the filters.

@MasterKia I cleared the cache and tried it on other browsers, but still, the issue persists. it detects AG ad blocker and forces to turn it off to be able to browse. it's true that I updated the filter before the test, but when I open the filters, I encounter a filter list which has updated at 9 am this morning. maybe i should wait to test the updated list.

image image
MasterKia commented 2 years ago

@zloyden Is AdGuard caching the regional lists? Why is the cache time so long? GitHub caches for only 10 minutes.

MasterKia commented 2 years ago

@aliafshany Disable the Persian Blocker list in AdGuard. Add this URL as a new list: https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlocker.txt

Then test again.

aliafshany commented 2 years ago

@MasterKia now I get this one + deformation of the webpage

image image
MasterKia commented 2 years ago

Weird. Could you install AdGuard extension on Chrome and test again using that? I don't have a Mac.

aliafshany commented 2 years ago

@MasterKia i installed the extension, and everything is working fine now except the "android news" part.

image
MasterKia commented 2 years ago

deformation of the webpage

Did you disable the old list? The deformation comes from an older version of the list.

MasterKia commented 2 years ago

the "android news" part.

There is no "android news" as far as I remember, but if you mean "مطالب اندروید" you just have to click on that tab so it'll appear.

aliafshany commented 2 years ago

@MasterKia i did that and used this link instead https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlocker.txt

also disabled it from AG desktop and extension and used the link.

MasterKia commented 2 years ago

So on AdGuard Desktop: you disabled the old list and used the link I gave you => you got page deformation and anti-adblock

Weird. Did you try killing and re-opening the AG Desktop app (or just restarting the system)?

aliafshany commented 2 years ago

@MasterKia let me reboot and try that one also

aliafshany commented 2 years ago

@MasterKia still the same

MasterKia commented 2 years ago

Then maybe AdGuard Desktop doesn't fully support the extended syntax that I've used (:remove()). Maybe you could whitelist soft98.ir in AG Desktop.

aliafshany commented 2 years ago

@MasterKia i closed AG desktop to test again. still same

MasterKia commented 2 years ago

But you said the extension is fine.

aliafshany commented 2 years ago

@MasterKia yes it works but no android news part is shown there which is not a big deal btw.

https://github.com/AdguardTeam/AdguardFilters/issues/126252#issuecomment-1205600211

MasterKia commented 2 years ago

What is the android news?

aliafshany commented 2 years ago

@MasterKia look at the picture i attached at this comment please https://github.com/AdguardTeam/AdguardFilters/issues/126252#issuecomment-1205600211

MasterKia commented 2 years ago

You should click on "مطالب اندروید"

aliafshany commented 2 years ago

@MasterKia thank you it works! :)))

MasterKia commented 2 years ago

@aliafshany

Please update the list again. The site admin self-sabotaged his site.

aliafshany commented 2 years ago

@MasterKia

image image
MasterKia commented 2 years ago

@aliafshany Can you force update the list and test again?

aliafshany commented 2 years ago

@MasterKia except this one, everything's fine

image
MasterKia commented 2 years ago

That's my doing. Is it awkward?

aliafshany commented 2 years ago

@MasterKia yea a little bit :)) it promotes persianblocker.

MasterKia commented 2 years ago

it promotes persianblocker.

Only users who have the list enabled will see that. Because the site is being update daily, users might get into problems if their list is outdated (@zloyden said AdGuard updates the lists after 4 days).

aliafshany commented 2 years ago

@MasterKia

image
MasterKia commented 2 years ago

I'll push a fix. I don't know what to say, the site admin intentionally causes self-sabotage.

MasterKia commented 2 years ago

@aliafshany Force update the PersianBlocker list.

aliafshany commented 2 years ago

@MasterKia

image
MasterKia commented 2 years ago

@aliafshany

Disable AdGuard for soft98 completely.

Install TamperMonkey

Click on this link to install the soft98 cleaner userscript.

Let me know how it works.

aliafshany commented 2 years ago

@MasterKia @zloyden I have installed the extension you asked for and added the script. Still, I see ads, but the framing of the site is ok. Unfortunately, this has become time-consuming for me. I'd like to leave this issue to other participants, for which I have participated enough and tried many things on my side without any successful results. Thank you for your efforts.

image image
MasterKia commented 2 years ago

I understand. I'll let @DRSDavidSoft know that the script needs updating. In any case, I push a fix as soon as I'm aware of new changes. If you happened to notice anything you could let me know. Thanks.

0x416c69 commented 2 years ago

@aliafshany One hacky solution would be to block https://soft98.ir/templates/soft98_default/js/jquery.js or disable JavaScript on soft98 completely and execute the following code in your browser's console (F12):

document.getElementsByClassName('js-enable-d-block')[0].className = "";

If you want the features of the website that rely on JavaScript, you can decrease your window's width to < 768px, the anti adblock code checks if your window width is >= 768px first.

MasterKia commented 2 years ago

@0x416c69 AdGuard does support JS rules so it's possible to incorporate your hack in AdGuard filters. So if you can come up with JS code to defuse their anti-adblock, it'd be very useful.

zloyden commented 2 years ago

@0x416c69 it works, but they can only be added to user rules

||soft98.ir/templates/soft98_default/js/jquery.js
soft98.ir#%#//scriptlet('remove-class', 'd-none|js-enable-d-block', '.js-enable-d-block')