Welcome! Log In Create A New Profile

Advanced

Allow HTTP 206 only

Posted by NorwayFun 
Allow HTTP 206 only
March 10, 2014 03:29AM
Hello

I've got a video sharing web site and want to secure video links not to be available for direct download.

Site uses HTML5 <video> tag when available and flash plugin when it's not. We do referrer check, but various download extensions are sending same headers as website itself does. One thing I've noticed is, that when asked for a file from HTML5 and flash, nginx is returning HTTP 206 partial content, and from downloaders there is 200.

Can I somehow deny them?

Changed in default.conf

error_page 200 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}


now nginx is throwing error

nginx: [emerg] value "200" must be between 300 and 599 in /etc/nginx/conf.d/default.conf:26

What can I do?

Thanks ahead.



Edited 1 time(s). Last edit at 03/10/2014 03:36AM by NorwayFun.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready