2022-02-21 23:25:44 +01:00
|
|
|
<script>
|
|
|
|
import { onMount } from "svelte";
|
|
|
|
import Modal from "../util/Modal.svelte";
|
|
|
|
|
|
|
|
let file_expiry
|
|
|
|
let direct_linking
|
|
|
|
|
|
|
|
onMount(() => {
|
|
|
|
if (window.location.hash === "#direct_linking" || window.location.hash === "#hotlinking") {
|
|
|
|
direct_linking.toggle()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<div class="feat_table">
|
|
|
|
<div>
|
|
|
|
<div></div>
|
|
|
|
<div class="feat_normal round_tl">Free</div>
|
2022-10-19 18:54:14 +02:00
|
|
|
<div class="feat_pro round_tr">Pro</div>
|
2022-02-21 23:25:44 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="feat_label">Size limit per file</div>
|
2022-09-27 11:47:39 +02:00
|
|
|
<div class="feat_normal">20 GB per file (18.63 GiB)</div>
|
2022-02-21 23:25:44 +01:00
|
|
|
<div class="feat_pro">
|
2022-09-27 11:47:39 +02:00
|
|
|
<span class="text_highlight">50 GB</span> per file (46.57 GiB)
|
2022-02-21 23:25:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
File expiry
|
|
|
|
</div>
|
|
|
|
<div class="feat_normal">
|
2022-09-27 11:47:39 +02:00
|
|
|
60 days after the last time it is viewed
|
2022-02-21 23:25:44 +01:00
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
2022-11-01 10:54:31 +01:00
|
|
|
<span class="text_highlight">240 days</span> after the last time it is viewed
|
2022-02-21 23:25:44 +01:00
|
|
|
<br/>
|
|
|
|
<button class="round" on:click={file_expiry.toggle}>
|
|
|
|
<i class="icon">info</i>
|
|
|
|
More information
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-18 22:17:37 +02:00
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
Storage space
|
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
|
|
|
<span class="text_highlight">No storage limit</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-21 23:25:44 +01:00
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
Data transfer limit
|
|
|
|
</div>
|
|
|
|
<div class="feat_normal">
|
2022-09-27 11:47:39 +02:00
|
|
|
20 GB data transfer per week (168 hours). When this threshold is reached
|
2022-03-28 12:34:28 +02:00
|
|
|
your download speed will be reduced
|
2022-02-21 23:25:44 +01:00
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
2022-11-01 10:54:31 +01:00
|
|
|
Transfer limit of <span class="text_highlight">2 terabyte</span> per
|
2022-02-28 16:35:51 +01:00
|
|
|
month. If the transfer limit is exceeded the restrictions of the
|
|
|
|
free plan will apply
|
2022-02-21 23:25:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 23:02:47 +01:00
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
Hotlinking / embedding files
|
|
|
|
</div>
|
|
|
|
<div class="feat_normal">
|
|
|
|
Hotlinking is not allowed, files which are being hotlinked will be
|
|
|
|
blocked
|
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
|
|
|
<span class="text_highlight">Hotlinking is allowed</span> within
|
|
|
|
your data cap
|
|
|
|
<br/>
|
|
|
|
<button class="round" on:click={direct_linking.toggle}>
|
|
|
|
<i class="icon">info</i>
|
|
|
|
More information
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-21 23:25:44 +01:00
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
Adver­tise­ments
|
|
|
|
</div>
|
|
|
|
<div class="feat_normal">
|
|
|
|
Banner advertisements on the file viewer page
|
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
|
|
|
<span class="text_highlight">No ads</span> on files
|
|
|
|
you share. No ads when viewing files uploaded by
|
|
|
|
other users
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="feat_label">Privacy</div>
|
|
|
|
<div class="feat_normal">
|
|
|
|
No trackers, but advertisers can see your IP address
|
|
|
|
and browser fingerprint
|
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
|
|
|
<span class="text_highlight">Completely
|
|
|
|
private</span>. No third party scripts and no
|
|
|
|
logging
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="feat_label">
|
|
|
|
Online file previews
|
|
|
|
</div>
|
|
|
|
<div class="feat_normal">
|
|
|
|
View image, audio, PDF and text files directly in your
|
|
|
|
web browser
|
|
|
|
</div>
|
|
|
|
<div class="feat_pro">
|
|
|
|
<span class="text_highlight">Video streaming</span> in
|
|
|
|
your web browser. Free users will also be able to watch
|
|
|
|
videos you uploaded
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div></div>
|
|
|
|
<div class="feat_normal round_bl">Free</div>
|
2022-10-19 18:54:14 +02:00
|
|
|
<div class="feat_pro round_br">
|
2022-02-21 23:25:44 +01:00
|
|
|
{#if window.user.subscription.id === "patreon_1"}
|
|
|
|
You have this plan<br/>
|
|
|
|
Thank you for supporting pixeldrain!
|
|
|
|
{:else}
|
|
|
|
Only
|
2022-11-01 10:54:31 +01:00
|
|
|
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5736701&cadence=1" class="button button_highlight round">
|
|
|
|
€ 4 per month
|
2022-02-21 23:25:44 +01:00
|
|
|
</a>
|
|
|
|
or
|
2022-11-01 10:54:31 +01:00
|
|
|
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5736701&cadence=12" class="button button_highlight round">
|
|
|
|
€ 40 per year!
|
2022-02-21 23:25:44 +01:00
|
|
|
</a>
|
|
|
|
<br/>
|
|
|
|
(Excluding tax)
|
|
|
|
<br/>
|
|
|
|
Subscription managed by Patreon
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Modal bind:this={file_expiry} title="File Expiry Postponing" padding>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
Files on pixeldrain have to expire eventually. If we didn't do this the
|
|
|
|
website would keep growing forever and we would run out of money pretty
|
|
|
|
quickly.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
Unlike most other sharing sites pixeldrain uses a postponing system for
|
2022-09-27 11:47:39 +02:00
|
|
|
expiring files. When a file is freshly uploaded it gets 60 days by
|
|
|
|
default (120 days if you have the pro plan). After these 60 days we will
|
2022-03-22 23:02:47 +01:00
|
|
|
check when the file was last viewed. Files which are regularly viewed
|
|
|
|
could still bring new users to the platform, it would be rude to show
|
|
|
|
these people a File Not Found page. So if the file was viewed in the
|
2022-09-27 12:11:28 +02:00
|
|
|
last 60 days we will simply postpone the next check a month. If the file
|
2022-03-22 23:02:47 +01:00
|
|
|
was not viewed however it will immediately be removed.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
Views are only counted when someone visits the download page in a web
|
|
|
|
browser. This makes sure that users can see that the file comes from
|
|
|
|
pixeldrain.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
This way we can minimize dead links, and you won't have to tell your
|
|
|
|
friends to 'hurry and download this before it expires'.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
<Modal bind:this={direct_linking} title="Hotlinking Bandwidth" padding>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
Paying for bandwidth is the most expensive part of running pixeldrain.
|
|
|
|
Because of this we have to limit what can be downloaded and by who.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
Normally when you view a file it's on pixeldrain's file viewer. The file
|
|
|
|
viewer is the page with the download button, the name of the file and a
|
|
|
|
frame where you can view the file if it's an image, video, audio, PDF or
|
|
|
|
text file.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<h3>Rate limiting</h3>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
It's also possible to link directly to a file instead of the download
|
|
|
|
page. This circumvents our advertisers and branding and thus we lose
|
|
|
|
money when people do this. That's why I added 'hotlink protection mode'
|
|
|
|
to files. This mode is enabled when a file has been downloaded five
|
|
|
|
times more than it has been viewed through the file viewer. When hotlink
|
|
|
|
protection mode is activated a file cannot be downloaded through the
|
|
|
|
API, the request needs to come from the file viewer page. On the file
|
|
|
|
viewer you will see a CAPTCHA to fill in when you click the download
|
|
|
|
button.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
More information about <a
|
|
|
|
href="https://en.wikipedia.org/wiki/Inline_linking"
|
|
|
|
target="_blank">Hotlinking on Wikipedia</a>.
|
|
|
|
</p>
|
|
|
|
<h3>Hotlinking with a Pro subscription</h3>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
When you have a Pro subscription you will get a monthly data transfer
|
|
|
|
limit for all the files on your account combined. Files you download
|
|
|
|
from pixeldrain are subtracted from the data cap. If you have <a
|
|
|
|
href="/user/subscription">Bandwidth sharing</a>
|
2022-02-21 23:25:44 +01:00
|
|
|
enabled your data cap is also used when other people download
|
|
|
|
your files.
|
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
In principle there is always someone who pays for the bandwidth usage
|
|
|
|
when a file is being downloaded:
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<ol>
|
|
|
|
<li>
|
2022-03-22 23:02:47 +01:00
|
|
|
If the person downloading the file has a Pro subscription their data
|
|
|
|
cap is used.
|
2022-02-21 23:25:44 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2022-03-22 23:02:47 +01:00
|
|
|
If the person who uploaded the file has a Pro subscription and
|
|
|
|
Bandwidth sharing is enabled on their account, then the uploader's
|
|
|
|
data cap is used.
|
2022-02-21 23:25:44 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2022-03-22 23:02:47 +01:00
|
|
|
If neither the uploader nor the downloader has a Pro subscription
|
|
|
|
the download will be supported by advertisements on the download
|
|
|
|
page.
|
2022-02-21 23:25:44 +01:00
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
The bandwidth cap on your account is a 30 day rolling window. This means
|
|
|
|
that bandwidth usage will expire 30 days after it was used. Your counter
|
|
|
|
will not reset at the start of the next month.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-03-22 23:02:47 +01:00
|
|
|
When a list of files is downloaded with the 'DL all files' button each
|
|
|
|
file in the resulting zip file will be counted separately.
|
2022-02-21 23:25:44 +01:00
|
|
|
</p>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.feat_table {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.feat_table > div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
.feat_table > div > div:first-child {
|
|
|
|
flex: 0 0 20%;
|
|
|
|
max-width: 20%;
|
|
|
|
}
|
|
|
|
.feat_table > div > div {
|
|
|
|
flex: 1 1 0;
|
2022-10-19 18:54:14 +02:00
|
|
|
margin: 0.2em;
|
2022-02-21 23:25:44 +01:00
|
|
|
padding: 0.5em;
|
|
|
|
text-align: center;
|
|
|
|
word-wrap: break-word;
|
|
|
|
hyphens: auto;
|
|
|
|
}
|
|
|
|
.feat_table > div > .feat_label {
|
|
|
|
border-top-left-radius: 0.5em;
|
|
|
|
border-bottom-left-radius: 0.5em;
|
2022-10-19 18:54:14 +02:00
|
|
|
border: 1px solid var(--separator);
|
2022-02-21 23:25:44 +01:00
|
|
|
}
|
|
|
|
.feat_table > div > .feat_normal {
|
2022-04-01 20:27:38 +02:00
|
|
|
background-color: var(--card_color);
|
2022-10-19 18:54:14 +02:00
|
|
|
border: 1px solid var(--separator);
|
2022-02-21 23:25:44 +01:00
|
|
|
}
|
|
|
|
.feat_table > div > .feat_pro {
|
2022-04-01 20:27:38 +02:00
|
|
|
background-color: var(--card_color);
|
2022-10-19 18:54:14 +02:00
|
|
|
border: 1px solid var(--highlight_color);
|
2022-02-21 23:25:44 +01:00
|
|
|
}
|
|
|
|
.text_highlight {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.feat_table > div > div.round_tl { border-top-left-radius: 0.5em; }
|
|
|
|
.feat_table > div > div.round_tr { border-top-right-radius: 0.5em; }
|
|
|
|
.feat_table > div > div.round_br { border-bottom-right-radius: 0.5em; }
|
|
|
|
.feat_table > div > div.round_bl { border-bottom-left-radius: 0.5em; }
|
|
|
|
</style>
|