kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
408 stars 79 forks source link

[Question] browser sending external requests in the background #590

Closed DarkmatterUAE closed 1 year ago

DarkmatterUAE commented 1 year ago

When the browser is loading a wikipedia page from kiwix-serve, I got curious why it's taking a few seconds to complete, so I opened the dev tools, ticked "Disable cache" and reloaded the page. Kind of curious why requests to upload.wikimedia.org appeared (though failed, since there's Internet censorship in my country) on the network log? Is this a problem with the zim file, or should kiwix-serve blocks such external assets loading from happening? Screenshot showing 3 requests to upload.wikimedia.org being made during page load

kiwix-serve in alpine linux:


libkiwix 11.0.0
+ libzim 8.0.0
+ libxapian 1.4.21
+ libcurl 7.86.0
+ libmicrohttpd 0.9.75
+ libz 1.2.13
+ libicu 72.1.0
+ libpugixml 1.12.0

libzim 8.0.0
+ libzstd 1.5.2
+ liblzma 5.2.7
+ libxapian 1.4.21
+ libicu 72.1.0
kelson42 commented 1 year ago

This is a problem with mwoffliner and ticket should be moved there... but we already one of that kind there I believe.

nijazm commented 1 year ago

yes, I reported that few years ago, from different github account, but I block such requests locally using extensions like ublock origin or umatrix...I think only two images or svg files try to be loaded

mgautierfr commented 1 year ago

It would be interesting to test it with kiwix-desktop. kiwix-desktop should block this kind of requests even if the zim file itself is buggy.

DarkmatterUAE commented 1 year ago

I think only two images or svg files try to be loaded

Yes. It's a lock-shaped indicator suggesting certain cited material can only be accessed after registration.

https://en.wikipedia.org/wiki/Template:Citation#Subscription_or_registration_required

kelson42 commented 1 year ago

Duplicate of https://github.com/openzim/mwoffliner/issues/1280