<commit_before><h1 i18n class="about-peertube-title">
  About PeerTube
</h1>

<div class="description">
  <p i18n>PeerTube is a federated (ActivityPub) video streaming platform using P2P (WebTorrent) directly in the web browser.</p>

  <p i18n>
    It is a free and open-source software, under the <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE">AGPLv3 licence</a>.
  </p>

  <p i18n>
    For more information, please visit <a target="_blank" rel="noopener noreferrer" href="https://joinpeertube.org">joinpeertube.org</a>.
  </p>
</div>

<div id="p2p-privacy">
  <h3 i18n class="section-title">P2P & Privacy</h3>

  <p i18n>
    PeerTube uses the BitTorrent protocol to share bandwidth between users.
    This implies that your IP address is stored in the instance's BitTorrent tracker as long as you download or watch the video.
  </p>

  <h6 i18n class="p2p-privacy-title">What are the consequences?</h6>

  <p i18n>
    In theory, someone with enough technical skills could create a script that tracks which IP is downloading which video.
    In practice, this is much more difficult because:
  </p>

  <ul>
    <li i18n>
      An HTTP request has to be sent on each tracker for each video to spy.
      If we want to spy all PeerTube's videos, we have to send as many requests as there are videos (so potentially a lot)
    </li>

    <li i18n>
      For each request sent, the tracker returns random peers at a limited number.
      For instance, if there are 1000 peers in the swarm and the tracker sends only 20 peers for each request, there must be at least 50 requests sent to know every peers in the swarm
    </li>

    <li i18n>
      Those requests have to be sent regularly to know who starts/stops watching a video. It is easy to detect that kind of behaviour
    </li>

    <li i18n>
      If an IP address is stored in the tracker, it doesn't mean that the person behind the IP (if this person exists) has watched the video
    </li>

    <li i18n>
      The IP address is a vague information : usually, it regularly changes and can represent many persons or entities
    </li>

    <li i18n>
      Web peers are not publicly accessible: because we use WebRTC inside the web browser (<a href="https://webtorrent.io/">with the WebTorrent library</a>), the protocol is different from classic BitTorrent.
      When you are in a web browser, you send a signal containing your IP address to the tracker that will randomly choose other peers to forward the information to.
      See <a href="https://github.com/yciabaud/webtorrent/blob/beps/bep_webrtc.rst">this document</a> for more information
    </li>
  </ul>

  <p i18n>
    The worst-case scenario of an average person spying on their friends is quite unlikely.
    There are much more effective ways to get that kind of information.
  </p>

  <h6 i18n class="p2p-privacy-title">How does PeerTube compare with YouTube?</h6>

  <p i18n>
    The threats to privacy in YouTube are different from PeerTube's.
    In YouTube's case, the platform gathers a huge amount of your personal information (not only your IP) to analyze them and track you.
    Moreover, YouTube is owned by Google/Alphabet, a company that tracks you across many websites (via AdSense or Google Analytics).
  </p>

  <h6 i18n class="p2p-privacy-title">What can I do to limit the exposure of my IP address?</h6>

  <p i18n>
    Your IP address is public so every time you consult a website, there is a number of actors (in addition to the final website) seeing your IP in their connection logs: ISP/routers/trackers/CDN and more.
    PeerTube is transparent about it: we warn you that if you want to keep your IP private, you must use a VPN or Tor Browser.
    Thinking that removing P2P from PeerTube will give you back anonymity doesn't make sense.
  </p>

  <h6 i18n class="p2p-privacy-title">What will be done to mitigate this problem?</h6>

  <p i18n>
    PeerTube is only in beta, and want to deliver the best countermeasures possible by the time the stable is released.
    In the meantime, we want to test different ideas related to this issue:<commit_msg>PeerTube is not in beta anymore<commit_after><h1 i18n class="about-peertube-title">
  About PeerTube
</h1>

<div class="description">
  <p i18n>PeerTube is a federated (ActivityPub) video streaming platform using P2P (WebTorrent) directly in the web browser.</p>

  <p i18n>
    It is a free and open-source software, under the <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE">AGPLv3 licence</a>.
  </p>

  <p i18n>
    For more information, please visit <a target="_blank" rel="noopener noreferrer" href="https://joinpeertube.org">joinpeertube.org</a>.
  </p>
</div>

<div id="p2p-privacy">
  <h3 i18n class="section-title">P2P & Privacy</h3>

  <p i18n>
    PeerTube uses the BitTorrent protocol to share bandwidth between users.
    This implies that your IP address is stored in the instance's BitTorrent tracker as long as you download or watch the video.
  </p>

  <h6 i18n class="p2p-privacy-title">What are the consequences?</h6>

  <p i18n>
    In theory, someone with enough technical skills could create a script that tracks which IP is downloading which video.
    In practice, this is much more difficult because:
  </p>

  <ul>
    <li i18n>
      An HTTP request has to be sent on each tracker for each video to spy.
      If we want to spy all PeerTube's videos, we have to send as many requests as there are videos (so potentially a lot)
    </li>

    <li i18n>
      For each request sent, the tracker returns random peers at a limited number.
      For instance, if there are 1000 peers in the swarm and the tracker sends only 20 peers for each request, there must be at least 50 requests sent to know every peers in the swarm
    </li>

    <li i18n>
      Those requests have to be sent regularly to know who starts/stops watching a video. It is easy to detect that kind of behaviour
    </li>

    <li i18n>
      If an IP address is stored in the tracker, it doesn't mean that the person behind the IP (if this person exists) has watched the video
    </li>

    <li i18n>
      The IP address is a vague information : usually, it regularly changes and can represent many persons or entities
    </li>

    <li i18n>
      Web peers are not publicly accessible: because we use WebRTC inside the web browser (<a href="https://webtorrent.io/">with the WebTorrent library</a>), the protocol is different from classic BitTorrent.
      When you are in a web browser, you send a signal containing your IP address to the tracker that will randomly choose other peers to forward the information to.
      See <a href="https://github.com/yciabaud/webtorrent/blob/beps/bep_webrtc.rst">this document</a> for more information
    </li>
  </ul>

  <p i18n>
    The worst-case scenario of an average person spying on their friends is quite unlikely.
    There are much more effective ways to get that kind of information.
  </p>

  <h6 i18n class="p2p-privacy-title">How does PeerTube compare with YouTube?</h6>

  <p i18n>
    The threats to privacy in YouTube are different from PeerTube's.
    In YouTube's case, the platform gathers a huge amount of your personal information (not only your IP) to analyze them and track you.
    Moreover, YouTube is owned by Google/Alphabet, a company that tracks you across many websites (via AdSense or Google Analytics).
  </p>

  <h6 i18n class="p2p-privacy-title">What can I do to limit the exposure of my IP address?</h6>

  <p i18n>
    Your IP address is public so every time you consult a website, there is a number of actors (in addition to the final website) seeing your IP in their connection logs: ISP/routers/trackers/CDN and more.
    PeerTube is transparent about it: we warn you that if you want to keep your IP private, you must use a VPN or Tor Browser.
    Thinking that removing P2P from PeerTube will give you back anonymity doesn't make sense.
  </p>

  <h6 i18n class="p2p-privacy-title">What will be done to mitigate this problem?</h6>

  <p i18n>
    PeerTube is in its early stages, and want to deliver the best countermeasures possible by the time the stable is released.
    In the meantime, we want to test different ideas related to this issue:
{'fraction_non_alphanumeric': 0.07233579291157614, 'fraction_numerical': 0.01717672674488932, 'mean_word_length': 3.4571428571428573, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2014996', 'n_tokens_mistral': 2528, 'n_tokens_neox': 2353, 'n_words': 1191}