inyokaproject / inyoka

All-in-one portal software
http://inyokaproject.org
Other
14 stars 4 forks source link

Remove tracking pixel automatically in Planet #1199

Open KaiserBarbarossa opened 3 years ago

KaiserBarbarossa commented 3 years ago

It would be a pleasure if tracking pixels would be automatically removed from the planet.

See also: https://forum.ubuntuusers.de/topic/ominoese-weisse-gif-bilder-im-planeten/.

Any opinions on this?

chris34 commented 3 years ago

https://pypi.org/project/bleach/ should do the main job. I worked on integrating it in https://github.com/chris34/inyoka/commits/planet-refactoring, but it was never finished…

Furthermore, i would only allow certain domains for images in the planet. For example a blog post could only include image from the same domain as the blog (if cdn make problems, we can allow a team-definable list of domains per blog).

chris34 commented 6 days ago

As bleach is deprecated nowadays, an alternative seems to be https://github.com/messense/nh3