bigdargon / hostsVN

Hosts block ads of Vietnamese
https://bigdargon.github.io/hostsVN
MIT License
475 stars 133 forks source link

Chặn QC trên dantri.com.vn #246

Closed vhpcdpgl closed 4 years ago

vhpcdpgl commented 4 years ago

Tên miền:

cdnasset.dantri.com.vn

Domain này nhúng hẳn 1 frame (qc dạng carousel/quay vòng) để load QC từ bên thứ 3. Vị trí frame gần cuối trang web.

bigdargon commented 4 years ago

@vhpcdpgl Mình đã có theo dõi tên miền này rồi, nó dùng để chứa các đoạn script để load cho trang web (như gadget). Trong đó có 1 rule của ABPVN||cdnasset.dantri.com.vn/fe/asset-dtms.html đã chặn địa chỉ https://cdnasset.dantri.com.vn/fe/asset-dtms.html?dtms=wss-prod&cat=20&count=3&v=12e71890&font=1&aid=20200918114634497&type=1&script=1&color=rgb(26%2C%20121%2C%200)

Theo mình bạn nên chặn bằng rule sẽ không gây lỗi khi load trang, bạn tham khảo một số script mình bắt được từ trang web.

Logger output | | | | | | | | | |:--- |:--- |:--- |:--- |:--- |:--- |:--- |:--- | | +8 | \|\|cdnasset.dantri.com.vn/fe/asset-dtms.html | -- | dantri.com.vn | 1 | frame | `https://cdnasset.dantri.com.vn/fe/asset-dtms.html?dtms=wss-prod&cat=20&count=3&v=12e71890&font=1&aid=20200918114634497&type=1&script=1&color=rgb(26%2C%20121%2C%200)` | | +7 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/12-12e71890.min.js?v=12e71890` | | +7 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/12-12e71890.min.js?v=12e71890` | | +7 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/11-12e71890.min.js?v=12e71890` | | +7 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/11-12e71890.min.js?v=12e71890` | | +7 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/20-12e71890.min.js?v=12e71890` | | +7 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/20-12e71890.min.js?v=12e71890` | | +5 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/1-12e71890.min.js?v=12e71890` | | +5 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/1-12e71890.min.js?v=12e71890` | | +5 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/0-12e71890.min.js?v=12e71890` | | +5 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/0-12e71890.min.js?v=12e71890` | | +5 | | | gadgets.dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/gadgets/assets/app.0172861.js` | | +5 | | | gadgets.dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/gadgets/assets/app.0172861.js` | | +5 | | | gadgets.dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/gadgets/assets/vendors/commons.8e65778.js` | | +5 | | | gadgets.dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/gadgets/assets/vendors/commons.8e65778.js` | | +5 | | | gadgets.dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/gadgets/assets/pages/corona/mini.00d0422.js` | | +5 | | | gadgets.dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/gadgets/assets/pages/corona/mini.00d0422.js` | | +5 | | | gadgets.dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/gadgets/assets/runtime.4ef28ee.js` | | +5 | | | gadgets.dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/gadgets/assets/runtime.4ef28ee.js` | | +5 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/process.min.js?v=12e71890` | | +5 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/process.min.js?v=12e71890` | | +4 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/fe/render.min.js` | | +4 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/fe/render.min.js` | | +3 | | | dantri.com.vn | 3 | script | `https://static.vegadns.vn/` | `aliasURL=https://cdnasset.dantri.com.vn/gadgets/embed.js?v=200406` | | +3 | | | dantri.com.vn | 1 | script | `https://cdnasset.dantri.com.vn/gadgets/embed.js?v=200406` |
bigdargon commented 4 years ago

Mình theo dõi thì đoạn asset-dtms.html nằm trong script này https://cdnasset.dantri.com.vn/fe/process.min.js?v=12e71890

vhpcdpgl commented 4 years ago

Mình chặn nó rồi, sau đó test trên cả mobile và PC thì trang vẫn bình thường, chỉ có quảng cáo là mất thôi. PC thì mình test với DNSCrypt-proxy mà không dùng bất cứ addon nào, Chrome để nguyên xi, cũng ko dùng bất cứ program nào có xài ABPVN filter cả.

bigdargon commented 4 years ago

Mình có thử chặn rồi, mặc dù có mất khoảng trắng (vì mình có xài bộ lọc qc) nhưng nó sẽ làm hỏng cái cập nhật dịch bệnh corona ở các trang báo.

bigdargon commented 4 years ago

@vhpcdpgl Có vẻ chúng ta nên chặn nó, nếu dùng fb mở link bài viết sẽ có qc nhúng dưới cuối trang.