By User on Wednesday, 13 May 2020
Posted in Native Mobile App
Replies 1
Likes 0
Views 509
Votes 0
Hello. On EasySocial I got a problem when users used "page's source code" to share and download MP4 video files that was uploaded to private groups. I wanted to protect this video source, keep this files on website only (and don't make it downloadable or viewable outside private group) https://stackideas.com/forums/private-video-s-mp4-file-is-public-and-visible-for-all#reply-481866

If edit .htaccess and use code:
RewriteEngine On
RewriteCond %{REQUEST_URI} \.(mp4|mp3|avi)$ [NC]
RewriteCond %{HTTP_REFERER} !^https://example.com/.*$ [NC]
RewriteRule ^.* - [F,L]
It gives users error 404 when accessed directly from browser, but the web still can play the video.

But it doesn't allow to play videos on EasySocial Native App (I can see black screen instead video frame).
Do you have any idea how to edit code and allow display videos on EasySocial Native App (public app)?

Thanks.
Hello,

I'm sorry but that's the only way for the app to play the video. If you restricted from being accessed, native app wont be able to play it.
·
Wednesday, 13 May 2020 09:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post