BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Alternatives to prevent 3rd party content download
  FAQ FAQ  Forum Search   Register Register  Login Login

Alternatives to prevent 3rd party content download

 Post Reply Post Reply
Author
Message
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Topic: Alternatives to prevent 3rd party content download
    Posted: Sep 12 2020 at 4:34pm
Retaking a part of a previous post on how to limiting or hampering that 3rd parties download a video, this is what was mentioned so far:

Originally posted by Hobby001 Hobby001 wrote:

Originally posted by stackoverflow stackoverflow wrote:

If you are using PHP, the best way is to control it the .htaccess, you need to put your files, images and videos under consideration in a separate folder/directory, and create a new .htaccess file in this directory with the below:

RewriteEngine On
RewriteCond %{REQUEST_URI} \.(mp4|mp3|avi)$ [NC]
RewriteCond %{HTTP_REFERER} !^http://sample.com/.*$ [NC]
RewriteRule ^.* - [F,L]

The first line %{REQUEST_URI} will prevent getting the file through the web browser or through curl. The second line %{HTTP_REFERER} will prevent accessing the image/video using HTML tags <img> or <video> from any website except the exception ! you provide instead of http://sample.com/ which usually should be your website itself.

You can also have a look at my question and the accepted answer here for more tricks on the browser side.



Create a new php page and add the packs (UserSpace01) to your site to manage password protection.


Originally posted by Hobby001 Hobby001 wrote:

I found another solution to prevent download:

Add the following code in an html code block in header position

<body oncontextmenu="return false;">

And protect your page with a password by using the packs as I mentioned earlier

So, the page is not going to be protected (hosting does not support SqlLite), but I'd still would like to make a bit difficult to viewers to download the video (and/or embed it if we can apply a solution to this too)


Edited by WattJet - Sep 12 2020 at 4:40pm
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6195
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 12 2020 at 7:54pm
This will make it less easy


<body oncontextmenu="return false;">

Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Sep 12 2020 at 8:03pm
Hobby001.

You did mention "html code block in header position"
This is to say, in the same page (video)?

Also, Both in Chrome and in Edge, the controls of the video window includes a menu with the download option. Any possibility to stop that (other than excluding all the controls with the option of the HTLM 5 interactive package)?


Edited by WattJet - Sep 12 2020 at 9:49pm
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6195
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 13 2020 at 12:49pm
I modified the element ans added a property to prevent easy download.  You can download the element version 3 here




Edited by Hobby001 - Sep 13 2020 at 12:50pm
Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Sep 13 2020 at 1:06pm
Great !! that is a super upgrade!!
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6195
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 13 2020 at 1:26pm
You can donwnload it again, I just changed the icon for OpenElement's menu
Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Sep 13 2020 at 1:35pm
on my way
Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Sep 13 2020 at 1:45pm
Works like a charm in FF, Edge, Chrome and Android. Have not tested in Safari or iOS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.