mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
improve desc for allowed file types
This commit is contained in:
parent
2a36bca4c0
commit
2f432281a3
3 changed files with 16 additions and 2 deletions
|
@ -115,6 +115,10 @@ class Site < Sequel::Model
|
|||
unlimited_site_creation: false
|
||||
)
|
||||
|
||||
def plan_feature(key)
|
||||
PLAN_FEATURES[plan_type.to_sym][key.to_sym]
|
||||
end
|
||||
|
||||
LEGACY_SUPPORTER_PRICES = {
|
||||
plan_one: 1,
|
||||
plan_two: 2,
|
||||
|
|
|
@ -183,7 +183,9 @@
|
|||
</div>
|
||||
|
||||
<div class="site-actions" style="margin-bottom:25px">
|
||||
<a href="/site_files/allowed_types">Allowed file types</a> |
|
||||
<% if !current_site.plan_feature(:no_file_restrictions) %>
|
||||
<a href="/site_files/allowed_types">Allowed file types</a> |
|
||||
<% end %>
|
||||
<a href="/site_files/<%= current_site.username %>.zip">Download entire site</a> |
|
||||
<a href="/site_files/mount_info">Mount your site as a drive on your computer!</a>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<p>
|
||||
<strong>At the moment, Neocities is trying to grow sustainably.</strong> Our goal is to provide you with a free web site so you can arrange content in any way you want. In order to make sure we can continue to do this, we need to put in place measures to prevent Neocities from becoming a "file dump host". We don't currently have the resources to deal with preventing this from happening if we let users upload anything they want, so the temporary solution for now is to only allow file types that we know are useful for making web sites.
|
||||
|
||||
<p>For example, allowing users to host executable (EXE) files provides a way for attackers to host malicious content, and we want to minimize that. Also, if the site starts being used to host malicious content, it is possible that search engines like Google will punish us in rankings, which would affect everyone's site on Neocities.
|
||||
<p>For example, allowing users to host executable (EXE) files provides a way for attackers to host malicious content, and we want to minimize that. Also, if the site starts being used to host malicious content, it is possible that search engines like Google will punish us in rankings, or that our datacenter operators would tell us we can't do business with them, which would affect everyone's site on Neocities.
|
||||
</p>
|
||||
<p>
|
||||
MP3 music and MP4 video has similar problems, because if the uploaded content became very popular ("goes viral"), it would overwhelm our servers and make our bandwidth much more costly. And hosting rich-media content directly is almost never the best way to do it. <a href="http://soundcloud.com">Soundcloud</a> provides a great way to host music, and <a href="http://youtube.com">Youtube</a> does a very good job with taking your video, processing it, making sure it works on all browsers, and then provides an easy way for you to embed that content in your web page.
|
||||
|
@ -34,4 +34,12 @@
|
|||
<p>
|
||||
We are working on upgrading our infrastructure to deal with these problems more effectively (such as automatic virus scanning for executables, and using globally-distributed site caching to improve performance for sites and increase our bandwidth capabilities). Until then, we have a whitelist of allowed file types, but we will let you know if this changes in the future (and we expect it to). Thank you for your understanding and patience.
|
||||
</p>
|
||||
|
||||
<h2>Is there a way to remove the whitelist?</h2>
|
||||
<p>
|
||||
<strong>Yes!</strong> If you <a href="/plan">become a supporter</a> at the <strong>Cat Bus</strong> or higher level, we will remove the whitelist for your file uploads, and you can upload anything you want (except illegal/copyrighted content, of course)! Becoming a supporter reduces the "file dump" risk, which makes it a lot safer for us to allow file uploads of any kind.
|
||||
</p>
|
||||
<p>
|
||||
Keep in mind that it's still better to host things like videos on Youtube. They've spent a lot of time and invested a lot of money into building a platform for sharing high-bandwidth video very efficiently all over the world, which is not something we have the capital to perfect. And they don't charge you for bandwith, even if your video becomes very popular (infact, you can make money by sharing their advertising revenue with them).
|
||||
</p>
|
||||
</div>
|
Loading…
Add table
Reference in a new issue