Closed haloged closed 4 months ago
staticfile.org
is managed by polyfill, who was found distributing malwares through their domains:
Please update your website's code and don't use these domains any more.
Replace the cdn.staticfiles.org
with cdnjs.cloudflare.com/ajax/libs
and stay away from staticfile.org
.
Replace the
cdn.staticfiles.org
withcdnjs.cloudflare.com/ajax/libs
and stay away fromstaticfile.org
.
How can I replace it by using static filter?
I've tried *$script,stylesheet,replace=/cdn.staticfile.(net|org)/cdnjs.cloudflare.com\/ajax\/libs/i
in "My filters" with "Allow custom filters requiring trust" turned on, and it seems does not work.
replace
is for replacing the content of the connection, not redirecting connections go other sources. You'll need other tools for redirection.
replace
is for replacing the content of the connection, not redirecting connections go other sources. You'll need other tools for redirection.
I've already redirect connections by using Header Editor extension in Microsoft Edge :
Rules:
"name": "Fix Supply Chain Attack",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "https?:\\/\\/cdn.(?:bootcdn.net\\/ajax\\/libs|bootcss.com|polyfill.io|staticfile.(net|org))\\/(.*)",
"to": "https://cdnjs.cloudflare.com/ajax/libs/$2"
but the web page https://www.cainiaojc.com/tool/node/
still seem's buggy, and in view-source:https://www.cainiaojc.com/tool/node/
, there's several cdn.staticfile.org
in html body seems cannot redirect by Header Editor.
I've tried
*$replace=/"https?:\/\/cdn.(?:bootcdn.net\/ajax\/libs|bootcss.com|polyfill.io|staticfile.(net|org))\/(.*)"/"https://cdnjs.cloudflare.com/ajax/libs/\$2"/i
*$document,replace=/"https?:\/\/cdn.(?:bootcdn.net\/ajax\/libs|bootcss.com|polyfill.io|staticfile.(net|org))\/(.*)"/"https://cdnjs.cloudflare.com/ajax/libs/\$2"/i
*$script,stylesheet,replace=/https?:\/\/cdn.(?:bootcdn.net\/ajax\/libs|bootcss.com|polyfill.io|staticfile.(net|org))\/(.*)/https:\/\/cdnjs.cloudflare.com\/ajax\/libs\//i
which all fails.
When I added @@||staticfile.org^
in static filter, uBlockOrigin recorder shows that half of the links named staticfile.net has changed into 'cdnjs.cloudflare.com/ajax/libs/*', but all staticfile.org still there.
So how should I do next then ?
all staticfile.org still there
I don't understand what you mean. If you mean you see the staticfile.org
appearing in the logger, it's normal because each extension sees the same connections before they are redirected. Each extension cannot know what other extensions are doing with those connections.
The best way to check is using browser's network devtools and check which connections are being loaded / blocked for the websites.
Prerequisites
URL address of the web page
https://www.haloged-studio.top/
Category
breakage
Description
UBlockOrigin unexpectedly blocked cdn.staticfiles.org, a website that provides JavaScript and CSS storage. Without it, my website would not work.
Other extensions used
No.
Screenshot(s)
Screenshot(s)
Configuration