2020-12-06 16:09:59 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
|
|
|
<title>PrivTracker - Private BitTorrent tracker for everyone</title>
|
|
|
|
<script>
|
2023-09-02 06:48:11 -05:00
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
document.querySelectorAll(".url").forEach(url => {
|
|
|
|
url.innerText = url.innerText.replace('{{hostname}}', window.location.hostname);
|
|
|
|
})
|
|
|
|
})
|
2020-12-06 16:09:59 -06:00
|
|
|
function makeRoom(length) {
|
2023-09-02 06:48:11 -05:00
|
|
|
let roomID = '';
|
|
|
|
const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
|
|
|
const charactersLength = characters.length;
|
|
|
|
for (let i = 0; i < length; i++) {
|
2020-12-06 16:09:59 -06:00
|
|
|
roomID += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
|
|
}
|
2023-09-02 06:48:11 -05:00
|
|
|
document.querySelectorAll(".url").forEach(url => {
|
|
|
|
url.innerText = url.innerText.replace('{{room}}', roomID);
|
|
|
|
})
|
2020-12-06 16:09:59 -06:00
|
|
|
|
2023-09-02 06:48:11 -05:00
|
|
|
document.querySelector('#hidden').style.display = 'block';
|
2020-12-06 16:09:59 -06:00
|
|
|
}
|
|
|
|
function copyToClipboard() {
|
2023-09-02 06:48:11 -05:00
|
|
|
navigator.clipboard.writeText(document.querySelector('.url').innerText);
|
2020-12-06 16:09:59 -06:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2020-12-08 05:04:32 -06:00
|
|
|
<nav style="float: right">
|
|
|
|
<a href="https://github.com/meehow/privtracker">Source code</a>
|
|
|
|
</nav>
|
2020-12-06 16:09:59 -06:00
|
|
|
<div>
|
|
|
|
<h1>PrivTracker</h1>
|
|
|
|
<h2>Private BitTorrent tracker for everyone</h2>
|
|
|
|
<p>
|
2022-11-09 03:04:33 -06:00
|
|
|
PrivTracker allows to share torrent files just with your friends, nobody else.
|
2020-12-06 16:09:59 -06:00
|
|
|
Unlike public trackers, it shares peers only within a group which is using the same Announce URL.
|
|
|
|
It really works like a private tracker, but can be generated with one click of a button.
|
|
|
|
</p>
|
|
|
|
|
2022-12-14 20:45:16 -06:00
|
|
|
<button onclick="makeRoom(32)">I'm in. Generate private tracker for me</button>
|
2020-12-06 16:09:59 -06:00
|
|
|
|
|
|
|
<div id="hidden" style="display:none">
|
|
|
|
<h3>Your announce URL:</h3>
|
2023-09-02 06:48:11 -05:00
|
|
|
<code class="url">https://{{hostname}}/{{room}}/announce</code>
|
2020-12-06 16:09:59 -06:00
|
|
|
<button onclick="copyToClipboard()">Copy to clipboard</button>
|
2022-12-14 20:47:28 -06:00
|
|
|
<p>(You can also use any random string as the Room ID. We don't store it anywhere.)</p>
|
2020-12-06 16:09:59 -06:00
|
|
|
</div>
|
|
|
|
<div>
|
2022-12-14 20:45:16 -06:00
|
|
|
|
2020-12-06 16:09:59 -06:00
|
|
|
</div>
|
|
|
|
<h2>How to create private torrent?</h2>
|
2020-12-08 10:44:38 -06:00
|
|
|
<h3>Using <a href="https://transmissionbt.com/" target="_blank">transmission</a> on Linux:</h3>
|
2020-12-06 16:09:59 -06:00
|
|
|
<ul>
|
2020-12-08 10:44:38 -06:00
|
|
|
<li>File <b>→</b> New…</li>
|
2020-12-06 16:09:59 -06:00
|
|
|
<li>Select file to share</li>
|
2023-09-02 06:48:11 -05:00
|
|
|
<li>In <b>Trackers</b> field enter <code class="url">https://{{hostname}}/{{room}}/announce</code></li>
|
2020-12-06 16:09:59 -06:00
|
|
|
<li>Select <b>Private torrent</b></li>
|
|
|
|
<li>Click <b>New</b></li>
|
2020-12-08 10:44:38 -06:00
|
|
|
<li>Click <b>Add</b> in next window</li>
|
2020-12-06 16:09:59 -06:00
|
|
|
<li>Click <b>Open</b> to start seeding</li>
|
2020-12-08 10:44:38 -06:00
|
|
|
<li>Done. Now you can send torrent file to your friends…</li>
|
2020-12-06 16:09:59 -06:00
|
|
|
</ul>
|
2020-12-08 10:44:38 -06:00
|
|
|
<img src="new_torrent_gtk.png" alt="New Torrent screenshot">
|
|
|
|
<h3>Using <a href="https://transmissionbt.com/" target="_blank">transmission</a> on Mac:</h3>
|
|
|
|
<ul>
|
|
|
|
<li>File <b>→</b> Create Torrent File…</li>
|
|
|
|
<li>Select file to share</li>
|
2023-09-02 06:48:11 -05:00
|
|
|
<li>Click <b>+</b> under <b>Trackers</b> field and enter <code
|
|
|
|
class="url">https://{{hostname}}/{{room}}/announce</code></li>
|
2020-12-08 10:44:38 -06:00
|
|
|
<li>Select <b>Private</b>
|
|
|
|
<li>Select <b>Open when created</b></li>
|
|
|
|
<li>Click <b>Create</b></li>
|
|
|
|
<li>Click <b>Add</b> to start seeding</li>
|
|
|
|
<li>Done. Now you can send torrent file to your friends…</li>
|
|
|
|
</ul>
|
|
|
|
<img src="new_torrent_mac.png" alt="New Torrent screenshot">
|
|
|
|
|
2020-12-06 16:09:59 -06:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
2023-09-02 06:48:11 -05:00
|
|
|
</html>
|