diff --git a/app/index.rb b/app/index.rb index 17e2ee85..07406d66 100644 --- a/app/index.rb +++ b/app/index.rb @@ -82,3 +82,7 @@ end get '/permanent-web' do erb :'permanent_web' end + +get '/hotlinking/?' do + erb :'hotlinking' +end diff --git a/app/site_files.rb b/app/site_files.rb index aa7107dc..340a7760 100644 --- a/app/site_files.rb +++ b/app/site_files.rb @@ -207,6 +207,7 @@ get '/site_files/allowed_types' do erb :'site_files/allowed_types' end + get '/site_files/mount_info' do erb :'site_files/mount_info' end diff --git a/views/hotlinking.erb b/views/hotlinking.erb new file mode 100644 index 00000000..c731fbf2 --- /dev/null +++ b/views/hotlinking.erb @@ -0,0 +1,35 @@ +
+
+

Neocities Hotlinking Policy

+
+
+ +
+

Neocities has measures in place to prevent hotlinking of content from non-Neocities sites.

+ +

What is hotlinking, and why don't you allow it?

+

+ Hotlinking is when a non-HTML file hosted by Neocities is embedded into another site that is not hosted by Neocities. +

+ +

+ We don't allow this because the purpose of Neocities is not to be a file server, but to be a portal for people creating their own web sites. When Neocities is used as a file dump for other sites, it hurts Neocities sites by cutting into the amount of bandwidth available to them. We want to promote Neocities sites, and this allows us to focus our resources on serving them as fast as possible. +

+ +

+ If you have a site on another server, the best way to serve files for it is by putting them directly on that server. Not only does this ensure that the files will not disappear in the future, but it also makes it easier for you to backup that site independently. +

+ +

+ If you need to store files for hotlinking use, there are plenty of alternatives. Imgur for example is a place you can store images that can be served by anyone. +

+ +

+ Please keep in mind that our reasons for doing this are purely out of requirement. We need to focus on being sustainable to run Neocities without advertisers and stay independent, and preventing Neocites from being used as a "file dump host" is a part of that process. +

+ +

Is there a way to remove the hotlinking restriction?

+

+ The hotlinking policy currently applies to all sites. We can't currently make exceptions because of the way our proxy servers work. We may change this in the future. +

+
diff --git a/views/site_files/allowed_types.erb b/views/site_files/allowed_types.erb index d48d0849..83a17a20 100644 --- a/views/site_files/allowed_types.erb +++ b/views/site_files/allowed_types.erb @@ -6,17 +6,21 @@

Currently Allowed File Types

- +

+

+

+ +

In addition, we have measures in place to prevent hotlinking of content from non-Neocities sites.

Why are there restricted file types?

@@ -33,7 +37,7 @@

- 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. + We are constantly working on upgrading our infrastructure to deal with these problems more effectively. Until then, we have a whitelist of allowed file types, but we will let you know if this changes in the future. Thank you for your understanding.

Is there a way to remove the whitelist?