Replies: 3 comments 8 replies
|
@drzraf I absolutely agree, both of these would increase the quality of our index and all of these are valid future enhancement ideas. Thanks for the provided examples/collections as well. Quick note: we already remove
What was the sample size you've checked?
We do have a default config. The user provided config only overwrites values in the default config. It could be added to the default config similarly to the sensitive content filter: https://github.com/asciimoo/hister/blob/master/config/config.go#L350 |
|
Wasn't 100% after all. Here are some URLs wrongly filtered by the above: https://authjs.dev/ But nothing a good regexp couldn't fix :) |
|
for the subset of canonicalizing tracking parameters, uBlock Origin (and i believe AdGuard as well?) also have a additionally using ad blocker filterlists before or as an alternative to readability can also be worth it, especially ones that might otherwise be "too heavy" for general purpose use, such as, https://github.com/LanikSJ/webannoyances. all that said, i'm not exactly sure how easy that'd be given the bespoke nature of filterlist syntax. i know brave has a rust implementation with python bindings, and uBO of course has a javascript implementation, but i'm unsure if there's any implementation for go for the CLI indexer unrelatedly: query sorting is something several caches can already do (here's the docs for vinyl cache) and may be worth implementing, but query syntax isn't strict so this could break websites which use nonstandard query param syntax (or otherwise cut corners) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
URLs can:
rules.jsonskip)url/#some-hash)utm_*) [but the resource is still of interest]token,oauth code, ...) [but the resource is still of interest]?a=b&c=dvs?c=d&a=b) [https://github.com/Indexing rules documentation #277#issuecomment-4187306327]/logout) or subdomains (auth.domain.com) deserve a default list provided by the indexer to make the firstimportsmoother and safer.For 3 and 4, some parameters are user-specific. But many are just a problem of the modern, impacting equally everyone. Like for cookies, there are database of known query-string parameters (associated with the domains).
Anyone who already dealt with cache deduplication probably compiled a list of dozens of such parameters. There are used in http frontend, in anti-tracking browser extension (even hardcoded in browser themselves, like in Firefox or Brave
It's logical that this problem (and corresponding solutions) fall onto content indexers too.
Providing something "safe" out-of-box is of uttermost importance to avoid users having the bad surprise to see very private content in their search results.
Regarding Point 3 and 4, just an initial command/regexp to strip common session-ids:
sed -r 's/#.*//;s/([?&])(g_ep|__mk|s?client|utm_[a-z0-9_]*|sca_esv|hl|biw|bih|ved|gs_lp|__cf_chl[a-z0-9_]*|usg|ust|uauid|skid|sfmc_[a-z0-9_]*|tid|fbs|s?ei|gs_lcp|gs_l|dpr|browser_session_id|iflsig|sg_ss|qs|hs|gclid|code|zx|ai|vssid|refinements|rh|pvid|crid|arko|pd_rd_[a-z0-9_]*|visitId|_gl|content-id|_x_ns_[a-z0-9_]*|ds|qid|purchaseId|pdp_|curPageLogUid|spc|srsltid|sstk|state|tab|share_id|token)=[^&]+/\1/ig;s/&&+/\&/g;s/[?&]$//;s/\?&/?/g'Regarding Point 6:
I used various heuristics to end-up with this list and it complied with my expectations : 100% of the URL matched by these were content I definitely wouldn't want indexed and users who would want them to be are probably not the larger share and could actively broaden a default skip-list. I think it's important to provide something like this out of the box (config generator ?)
All reactions