Hi,
in my Apache configuration I have 'Deny from all' for the galleries folder and for the _data/i/ folder to protect direct access to the images. For the images, this works fine. For the videos, though, I get the error 'The video could not be loaded, either because the server or network failed or because the format is not supported.' If I remove 'Deny from all' for the galleries folder, the video plays.
My question is: can the videojs plugin be made to play the videos in the same way the images are displayed, so that it is possible to protect the video files from direct link access? Or is any other video plugin capable of that?
Cheers
Konstantin
Offline
Hi
no way
the image protection works because everything is processed by i.php file, but this is not doable for a file as big as a video
the video player (client) must have access to the file on the server, and "deny from all" prevents this, and it will be the same for every player
Offline
Thanks for the fast reply. Is there any other way to protect video files from unauthorized access?
Konstantin
Offline
One way it to check the referer.
All request should come from domain.com and not any other.
Is the referer is not your own website, you can refuse access.
You can also filter with the file extension.
You can find sample by googeling htaccess referer.
Hope this help.
Offline
xbgmsharp wrote:
One way it to check the referer.
All request should come from domain.com and not any other.
Is the referer is not your own website, you can refuse access.
You can also filter with the file extension.
You can find sample by googeling htaccess referer.
Hope this help.
Custom http request can be easily made
Offline