-1

I have Squid filtering all my WEB traffic running on port 80, I managed to block all torrent links using this ACL acl mediapr urlpath_regex \.torrent$ but I am not able to block magnet links.

1 Answers1

1

You cannot block magnet links using proxy, since they are direct links to the Bittorrent network itself, and they have nothing to do with web.

You would have to implement Bittorrent filtering in your firewall in order to block those.

Tero Kilkanen
  • 34,499
  • 3
  • 38
  • 58
  • hmm, maybe then there is a way to filter (parse) all website source before sending it to client and replace ":magnet" with something else? – Kārlis Baumanis Mar 19 '14 at 14:40
  • Content adaptation is possible with Squid: http://wiki.squid-cache.org/SquidFaq/ContentAdaptation . However, one needs to be really careful when implementing Content adaptation like that, so that it doesn't cause problems with other web content... – Tero Kilkanen Mar 22 '14 at 02:33