B4J Question [JServer] have a way to protect videos on JServer ?

Waldemar Lima

Well-Known Member
Licensed User
is there any way to prevent the JServer from letting users download the video files (.mp4 for example), but if it's a request from the site itself, does it let them play?
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
is there any way to prevent the JServer from letting users download the video files (.mp4 for example),
Yes there is, you can prevent downloading from unknown (or other filters you want) with the normal filters:

Just put them in a folder where you can restrict access and that would be all. Now, if you just want to prevent the downloading; no, no you cant without third party libraries or software
 
Upvote 0

Waldemar Lima

Well-Known Member
Licensed User
but is there a possibility to block only the download, but allow playback on the site's video player? technically to play in the video player is not necessary to "download"?
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
I guess you could create a one time link to your video created after a post. so once it is server the link will no longer be valid.
Also instead of serving a static file you can use an inpustream from a source outside of the web root folder.

 
Upvote 0
Top