Open pexo-zn opened 4 years ago
Previous conversation on GitCenter:
nofish@zeroid.bit commented on Feb 11 2019
The download notification has to done on site level, but we could create a new list (same as blocked sites/users) to filters.json and the site could use this list to check if the content is blocked.
pexo@zeroid.bit commented on Feb 12 2019
So would (for example) ZeroFrame.cmd("fileGet", ["data/users/SomeBadFile.jpg", false]) return {"error": "File on blocklist"}
or would there be an additional way to tell the zite dev that the file is blocked?
nofish@zeroid.bit commented on Feb 13 2019
Yeah, and probably fileblockAdd, fileblockRemove, fileblockList command that lists all blocked files on the site with the reason and the source. Probably it could also contain post/comment ids, not just files.
Is your feature request related to a problem? Please describe. People shy away from some zites because they suspect/fear illegal content. While it is possible for blocklists to block user(-id)s and entire zites, it is not possible to block specific files on zites which can be an issue depending on the architecture of the zite in question. An example for that would be millchan(the non merger version) and avatar images on ZeroMe(because they will be marked as required and thus be downloaded onto everyone computer in the case of CP this can be devastating).
Describe the solution you'd like Introduce the ability to block files from specific websites as an ZeroFrame api command. One way of doing that would be to have ziteAddress, date_added, inner_path, name and reason in a filters/files.json. If the user then tries to download a muted file, a notification will appear, which informs him of the reason why that file is blocked, asks if he wants to get it anyways and an option to not show that notification again. Since the user should always be able to tell which files are blocked on his end, blocking files based only on its hash should not be the implemented.
Describe alternatives you've considered Blocking users and/or zites in the case of millchan (and the theoretical case of ZeroMe). Both don't work satisfactory or at all.
Additional context This issue is mirrored from the GitCenter ZeroNet repository(you need to install ZeroNet to visit this link)