uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
3.79k stars 728 forks source link

rjno1.com: detection #11152

Closed DeepChirp closed 2 years ago

DeepChirp commented 2 years ago

Prerequisites

URL address of the web page

https://www.rjno1.com/

Category

detection

Describe the issue

If the ad filter is not turned off, then the page cannot be accessed

```js window.onload = function(){ if (ydd3d9rjno1settimeout) { } else { //document.getElementById('ydd3d9bbb').style.display='block'; for ( i=0; i

禁用广告屏蔽(ad blocker),刷新页面继续浏览<\/p>

Please disable your ad blocker,refresh page to view.<\/p>

请使用firefox或者基于chrome的浏览器浏览本站<\/p>

Please use firefox or chrome-based browser to browse this site<\/p><\/div>"; } } } }, 4187); }; ```

Screenshot(s)

Screenshot(s) ![image](https://user-images.githubusercontent.com/66902050/147821844-b75d4829-6d5c-423b-b85a-0c78b0d02d7f.png)

Configuration

```yaml uBlock Origin: 1.39.2 Chromium: 96 filterset (summary): network: 104163 cosmetic: 103335 scriptlet: 19292 html: 0 listset (total-discarded, last updated): added: https://gitlab.com/DandelionSprout/adfilt/-/raw/master/LegitimateURLShortener.txt: 1596-0, 3h.19m block-lan: 44-0, 21h.57m fanboy-annoyance: 59368-155, 1d.20h.49m ublock-annoyances: 4347-126, 51m default: CHN-0: 27123-86, 3d.20h.46m easylist: 62348-16, 1d.20h.45m easyprivacy: 26566-43, 1d.20h.43m plowe-0: 3681-818, 22h ublock-abuse: 79-0, 51m ublock-badware: 3648-65, 21h.53m ublock-filters: 30140-180, 21h.55m ublock-privacy: 193-12, 1d.20h.41m ublock-unbreak: 1734-43, 1d.20h.47m urlhaus-1: 7612-0, 3h.21m filterset (user): [empty] modifiedUserSettings: cloudStorageEnabled: true modifiedHiddenSettings: [none] supportStats: launchToReadiness: 273 launchFromSelfie: true popupPanel: blocked: 6 ```
uBlock-user commented 2 years ago
rjno1.com##+js(overlay-buster)
rjno1.com##+js(acis, onload)

Works for me.

Yuki2718 commented 2 years ago

@uBlock-user CHN has rjno1.com##+js(abort-current-script, onload, AdBlock) so rjno1.com##+js(overlay-buster) alone should be enough.

uBlock-user commented 2 years ago

scriptlets don't work on this site as I would have expected.

Yuki2718 commented 2 years ago

I guess rjno1.com##div[id][style="width: 100%; height: 100%; border-left: 10px solid; border-top: 5px solid;"] is maybe enough.

JobcenterTycoon commented 2 years ago

Anti Adblock is back

Also fingerprint stuff coming from https://www.rjno1.com/cdn-cgi/challenge-platform/h/b/scripts/invisible.js and data get send to https://www.rjno1.com/cdn-cgi/challenge-platform/h/b/cv/result?req_id=6cc6f390389b2074

On uBlock Origin the layer can be hidden with: rjno1.com##div[id]:matches-css(position: /fixed/)

mapx- commented 2 years ago

or rjno1.com##[style]:matches-css(animation-delay:/^/)

@Yuki2718

Yuki2718 commented 2 years ago

@slavaleleka I can't make these matches-css rules actually work with AG Ext. 3.6.17 on Chromium. User rules are logged but don't hide the overlay.

JobcenterTycoon commented 2 years ago

What about the tracking?

gwarser commented 2 years ago

I see this now:

image

JobcenterTycoon commented 2 years ago

its rjno1.com##div[id]:matches-css(position: /fixed/) Im absolut sure i tested it yestarday and i didn’t saw this. I see they check this element and throw anti adb if they detect hidden overlay. Restyling works

rjno1.com##[style]:matches-css(animation-delay:/^/) does nothing on my end i still get anti adb

mapx- commented 2 years ago

breaking other pages completely, I'll remove the filters for now

Yuki2718 commented 2 years ago

On my end ##[style]:matches-css(animation-delay:/^/) is still working with uBO.

Not working - it appears the page detects the picker and hides the overaly if I open the picker.

What about the tracking?

I so far don't see breakage by blocking this, maybe the rule can be added. I was wrong, page broeken at https://www.rjno1.com/windows-run/

JobcenterTycoon commented 2 years ago

@Yuki2718 What is broken? I seo no difference after blocking the tracking

but at least they have a second adb detection when i bypass the overlay i get this after clicking on random link

Unbenannt

These classic filters will bypass both:

@@||rjno1.com^$ghide
@@||pagead2.googlesyndication.com/$script,xhr,domain=rjno1.com
*$script,redirect-rule=noopjs,domain=rjno1.com
*$frame,redirect-rule=noopframe,domain=rjno1.com
rjno1.com#@#.adsbygoogle:upward(1)
rjno1.com#@#+js()
Yuki2718 commented 2 years ago

Yeah, I now see no difference, strange. I'll go with the classic fix in AG Chinese.

JobcenterTycoon commented 2 years ago

@Yuki2718 uBO still need the special filters from my comment https://github.com/uBlockOrigin/uAssets/issues/11152#issuecomment-1012231327 because now the page is broken on uBO because of rjno1.com##.adsbygoogle:upward(1) and the +js filters need to be removed it triggers anti adb

Yuki2718 commented 2 years ago

@JobcenterTycoon Yeah, I forgot that.

JobcenterTycoon commented 2 years ago

@Yuki2718 anti adblock is back.

rjno1.com##style:has-text(@media screen):remove() already got removed

AG filter:

@@||hm.baidu.com/hm.js?$script,domain=rjno1.com
||sinaimg.cn/unipro/$script,redirect=noop.js,domain=rjno1.com
Yuki2718 commented 2 years ago

@@||hm.baidu.com/hm.js?$script,domain=rjno1.com ||sinaimg.cn/unipro/$script,redirect=noop.js,domain=rjno1.com

On my end doesn't/no more work.

JobcenterTycoon commented 2 years ago

@Yuki2718 anti adb is back

||nos.netease.com/fps-pro/frontends/house_index/index/js/index-ad.js?$script,redirect=noop.js,domain=rjno1.com works for me with AG chinese

JobcenterTycoon commented 2 years ago

@Yuki2718 anti adblock is back. Filter suggestion:

||pos.baidu.com^$script,redirect=noop.js,domain=rjno1.com
||cpro.baidu.com^$script,redirect=noop.js,domain=rjno1.com
@@||cpro.baidustatic.com/cpro/ui/cm.js$script,domain=rjno1.com
Yuki2718 commented 2 years ago

Is ||pos.baidu.com^$script,redirect=noop.js,domain=rjno1.com really needed?

JobcenterTycoon commented 2 years ago

For me yes

Yuki2718 commented 2 years ago

Okay added.

JobcenterTycoon commented 2 years ago

@Yuki2718 anti adblock is back. Filters

||jspassport.ssl.qhimg.com^$script,redirect=noop.js,domain=rjno1.com,important
@@||googletagmanager.com/gtag/js$script,domain=rjno1.com
Yuki2718 commented 2 years ago

Is important needed?

JobcenterTycoon commented 2 years ago

No

JobcenterTycoon commented 2 years ago

@Yuki2718 Anti adblock is back. I can bypass it by blocking inline scripts and hiding the overlay with rjno1.com##div:matches-css(animation-fill-mode:/forwards/) or similar

Or do you see any legitime inline scripts ? ...

mapx- commented 2 years ago
rjno1.com##+js(aost, document.getElementById, inlineScript)
rjno1.com##style:has-text(@keyframes):remove()
JobcenterTycoon commented 2 years ago

Works too

JobcenterTycoon commented 2 years ago

@Yuki2718 anti adblock is back

JobcenterTycoon commented 2 years ago

@Yuki2718 back is the anti adblock

rjno1.com##+js(aeld, error) ?

Yuki2718 commented 2 years ago

rjno1.com##+js(aeld, error) ?

Doesn't work on my end. These seem to work:

rjno1.com##+js(aost, document.styleSheets, inlineScript)
rjno1.com##+js(aost, document.getElementById, /google|inlineScript/)
JobcenterTycoon commented 2 years ago

@Yuki2718 anti adblock is back

what about ||rjno1.com^$inline-script for uBO ?

Yuki2718 commented 2 years ago

Better ||rjno1.com^$csp=script-src 'self' 'unsafe-eval' http: https: so that works on AG too but I'm not sure. @AdamWr what do you think?

AdamWr commented 2 years ago

If I'm not wrong, $inline-script and $csp=[...] will break #menu-toggle button in mobile view.

Screenshot ![image](https://user-images.githubusercontent.com/29142494/157653670-ca1b9153-fb50-4ecb-b088-e05bce3d9919.png)
Yuki2718 commented 2 years ago

will break #menu-toggle button in mobile view.

Yeah, you're right. So we have to continue cat-and-mouse game...

JobcenterTycoon commented 2 years ago

Its only on mobile so exclude the filter from mobile works

Yuki2718 commented 2 years ago

I'm not sure how to 100% exclude all mobile env in AG syntax.

Yuki2718 commented 2 years ago

The easiest way will be to add to uBlock filters with env_mobile and add

!+ PLATFORM(windows,mac)
||rjno1.com^$csp=script-src 'self' 'unsafe-eval' http: https:

to AG, giving up AG Exetension.

AdamWr commented 2 years ago

At the moment, I can't reproduce anti-adblock with AdGuard app/extension, so maybe it would be better to add this rule to uBO filters only?

JobcenterTycoon commented 2 years ago

I get anti adblock with adguard too but the overlay not the red one

JobcenterTycoon commented 2 years ago

ok its gone now

Yuki2718 commented 2 years ago

Done as you see. Thanks guys.

JobcenterTycoon commented 2 years ago

@Yuki2718 do you get breakage (blank cloudflare page) with uBO? If yes i need to remove ||rjno1.com^$inline-script

Yuki2718 commented 2 years ago

No problem on my end.

JobcenterTycoon commented 2 years ago

@Yuki2718 rjno1.com##+js(abort-on-stack-trace, document.getElementById, /google|inlineScript/) in AG chinese breaks the site completely (tested with uBO)

dportvine commented 8 months ago

https://www.rjno1.com/last-news/

Screen ![2023-10-18_164936](https://github.com/uBlockOrigin/uAssets/assets/111344219/7870a87e-cd11-4463-b5ff-ba7e118f97ad)
```yaml uBlock Origin: 1.52.3b15 Chromium: 118 filterset (summary): network: 136049 cosmetic: 72955 scriptlet: 24015 html: 0 listset (total-discarded, last-updated): removed: user-filters: null added: CHN-0: 25211-134, 1m ublock-annoyances: 5551-9, 1m default: RUS-0: 40004-10, 1m easylist: 71875-49, 1m easyprivacy: 33186-167, 1m plowe-0: 3729-1075, 1m ublock-badware: 7271-132, 1m ublock-filters: 34961-187, 1m ublock-privacy: 562-7, 1m ublock-quick-fixes: 229-86, 1m ublock-unbreak: 2125-34, 1m urlhaus-1: 10360-0, 1m filterset (user): [array of 3 redacted] userSettings: advancedUserEnabled: true contextMenuEnabled: false showIconBadge: false hiddenSettings: filterAuthorMode: true popupPanelHeightMode: 1 supportStats: allReadyAfter: 972 ms (selfie) maxAssetCacheWait: 609 ms popupPanel: blocked: 12 network: baidustatic.com: 2 doubleclick.net: 5 googleadservices.com: 1 googlesyndication.com: 1 googletagmanager.com: 1 sinaimg.cn: 2 extended: ##.adsbygoogle-noablate ##div:matches-css(position:/fixed/) ##+js(addEventListener-defuser, error, event.target.tagName) ##+js(remove-node-text, script, /_date|Date()|parseInt|banana|ad… ##+js(replace-node-text, script, /\/\*.*?\*\//) ##+js(replace-node-text, script, }else{, }if(true){) ##+js(replace-node-text, script, .push({});, .push({}); document… ```