AdguardTeam / AdguardFilters

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

n.news.naver.com #180003

Closed adguard-bot closed 4 months ago

adguard-bot commented 4 months ago

Issue URL (Incorrect Blocking)

https://n.news.naver.com/article/021/0002639275?cds=news_edit

Comment

Load the page with the https filtering on the NAVER mobile app, and the following will happen.

  1. Dark mode is disabled.
  2. News images are not loaded.
  3. The NAVER app will occasionally issue a warning about the CA certificate (connection insecure ...) Username: @lyh16

Screenshots

Screenshot 1 ![Screenshot 1](https://cdn.adguard.info/sitereports/kvgp3030akg048ok4848s0oogwoks0878c8gh8izhs.jpg?nc=1)
Screenshot 1 with AdGuard disabled ![Screenshot 1](https://cdn.adguard.info/sitereports/3aadlek5tjuoowo4kgwsgs88wcgg0oobwtpa9v2izc.jpg?nc=1)

System configuration

Information Value
AdGuard product: AdGuard for Android v4.4.1
System version: Android 14
Browser: 삼성 브라우저
License type: paid
AdGuard mode: VPN
HTTPS filtering: enabled
Stealth mode options: Strip URLs from tracking parameters,
Hide your search queries,
Send Do-Not-Track header,
Hide your Referrer from third-parties,
Hide your User-Agent,
Hide your IP address (208.54.104.184),
Remove X-Client-Data header from HTTP requests,
Protect against DPI,
Self-destructing third-party cookies (180),
Self-destructing first-party cookies (4320),
Block trackers
DNS filtering: disabled
Filters: Ad Blocking:
AdGuard Base,
AdGuard Mobile Ads,
EasyList

Privacy:
AdGuard URL Tracking,
AdGuard Tracking Protection,
EasyPrivacy

Social Widgets:
AdGuard Social Media,
Fanboy's Social Blocking List

Annoyances:
AdGuard Annoyances,
AdGuard Cookie Notices,
AdGuard Popups,
AdGuard Mobile App Banners,
AdGuard Other Annoyances

Security:
Online Malicious URL Blocklist

Other:
AdGuard DNS

Language-specific:
AdGuard Japanese,
List-KR
Custom filters: https://easylist-downloads.adblockplus.org/koreanlist.txt
Userscripts: https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.meta.jsbr>https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.meta.js<br>https://cdn.jsdelivr.net/gh/List-KR/NamuLink@latest/NamuLink.user.js<brhttps://cdn.jsdelivr.net/gh/List-KR/microShield@latest/microShield.user.js
https://raw.githubusercontent.com/joyfuI/search-link-fix/master/search-link-fix.user.js
https://adsbypasser.github.io/releases/adsbypasser.full.es7.meta.js
https://update.greasyfork.org/scripts/477482/YouTube%20Shorts%20Redirect.meta.js
https://update.greasyfork.org/scripts/23772/Absolute%20Enable%20Right%20Click%20%20Copy.meta.js
https://update.greasyfork.org/scripts/459541/YouTube%E5%8E%BB%E5%B9%BF%E5%91%8A.meta.js
piquark6046 commented 4 months ago

@lyh16 It cannot be handled because it is a limitation of Android system regardless of any local VPN-based adblocker. If you want to filter HTTPS traffic of the Naver app, you need root permission of your Android system. Please use a web browser like Google Chrome and Mozilla Firefox.

lyh16 commented 4 months ago

Hmm.. But my observation is that I am having great ad blocking per se using the current configuration. As you can see in the screenshots, I see no ads using the given settings. However, my issues were that:

If this was a system level issue, I would expect that the HTTPS filtering break the app entirely. However, since the ads are being blocked well but some user settings for the website being blocked as collateral, I assumed that this was an issue caused by some overzealous filters.

piquark6046 commented 4 months ago

Did you enable HTTPS filtering for Naver app? If so, please disable it.

You can check it by navigating to AdGuard for Android -> 앱 관리 -> 네이버.

lyh16 commented 4 months ago

Done. The dark mode and images are back now. Thank you for the solution.

99% of the ads are blocked. The only exception being the grey ad area that can be seen near the top of the screenshot; where the ad image will not loaded but the ad text is still visible. These also go away if I swipe right and left to maneuver between different parts of the app.

As the issue is mostly resolved, I'm just curious about the reason behind this. Wouldn't the app have to break entirely if I'm having HTTPS problems? Then the rest of the web page is just falling back to HTTP then? What does HTTPS have to do with in-app dark mode and news images? The news text and thumbnail images loads okay.

Screenshot

![obscura1716802914068.jpg](https://github.com/AdguardTeam/AdguardFilters/assets/41638369/d80eabb1-e4de-4603-8425-fbc1a0865726)

piquark6046 commented 4 months ago

99% of the ads are blocked. The only exception being the grey ad area that can be seen near the top of the screenshot; where the ad image will not loaded but the ad text is still visible. These also go away if I swipe right and left to maneuver between different parts of the app.

The issue occurs because AdGuard for Android does not decrypt HTTPS traffic of Naver app. It means that AdGuard for Android cannot inject CSS stylesheet and javascript code into website to hide the leftovers and modify the webpage.

Wouldn't the app have to break entirely if I'm having HTTPS problems?

I guess that it depends on logic of an app.

Then the rest of the web page is just falling back to HTTP then?

I think that you can check it by navigating to filtering log of AdGuard for Android when the HTTPS filtering for Naver app is enabled.

What does HTTPS have to do with in-app dark mode and news images?

Maybe the app does not trust some images and CSS stylesheet if the TLS cert CA is untrusted.


So, I recommend using a web browser like Naver Whale, Google Chrome and Mozilla Firefox.

lyh16 commented 4 months ago

Thanks for the explanation. I'll consider this case resolved.