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

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Create a page with password and video
  FAQ FAQ  Forum Search   Register Register  Login Login

Create a page with password and video

 Post Reply Post Reply Page  123>
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: Create a page with password and video
    Posted: Sep 06 2020 at 5:40pm
Hi,

I want to create a page that can only be accessed with password.
The page will have a video.

Questions:
  • Page: The hosting suggested to create a subdomain with one page and the video, and then included the password to access it. Is this the best/easiest way to do it?
  • Video: Is there any way to avoid that the video is downloaded (or is only downloaded with another password)?
Thanks
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 06 2020 at 7:00pm
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.


https://stackoverflow.com/questions/1294501/how-to-prevent-downloading-images-and-video-files-from-my-website

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


Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Post Options Post Options   Thanks (1) Thanks(1)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 06 2020 at 7:01pm
Allways make a full project backup prior to modify your site.
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 06 2020 at 7:26pm
Many thanks!. I'll start working on it
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 07 2020 at 4:34pm

So, to make my life easier ( and the overall touch & feel consistent) I was considering to make this new page with the video based on one of the pages of the actual site.

 I have created a subdomain AND a new subdirectory in which this new video “page” will be saved. In this way, the regular site and this one for the video will remain completely independent and whatever I do here will not affect the regular site or saved info. The site would remain as it is now (mydatamygain.com) and the subdomain would be MDMGVideo.mydatamygain.com

 The page should have the same  touch&feell as the standard site, so I thought I could use the structure of the "News" page  I created based on the the sensode black template https://mydatamygain.com/actualites.htm , but with only one set of the sequence "anchor - FENETRE_MODAL -cadre"

I would keep all the rest of the components -including the top menu and the languages-, and I would ensure that those links are directed to the regular page https://mydatamygain.com.

I order to include the modifications in the htaccess that you recommend, the first step -I think- is to know what should go in that subdomain and subdirectory to achieve the above.

 So, Can I make a copy of the existing site, pass it to the subdiretory,  delete all unnecessary files and keep just the actualites page –rename it to become then the new index page (for the video) and then modify the access file as you suggest?

 I am sure that the above description is too crude, but something around that idea should be possible?
Any guidance will be more than welcome




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

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Post Options Post Options   Thanks (1) Thanks(1)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 07 2020 at 6:24pm
The new page does not need to be an index.htm page.

You can use OE site explorer to create the new sub-directory.  Then duplicate the news page and move the duplicate into the new directory allways using OE's site explorer.  Therefore all OE utilities will know about this page and will be able to handle it.

On the server side, your sub domain must be assigned to your subdirectory.  

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 07 2020 at 8:09pm
So I created a folder -within oe site explorer- , cloned the actualites page, renamed it as video and put it in that folder.
Then within that page got rid of everything except one cycle of anchor - FENETRE_MODAL -cadre. I got rid of the columns and only left the space and there I pasted a Video HTML 5 element.

I uploaded the video to Project - Resources - Video files and the Video works well.

Questions:
  1. What size should the window have? I put 960w x 640H, and the video itself at 100% but I do not know how will that work in Mobile.
  2. I cannot find how to point this folder to a new subdirectory on the server side. This is that I have the subdirectory created in the server, I have also created the subdomain.
I can point the subdomain to the specific subdirectory in the server but I do not know how to "tie" the other two since from what I see, the video is a resource -therefore saved in the same Files(Image, Media, Video)  folder of the oe site file, and I cannot find how to point this particular folder to the subdirectory in the server.

Once I have that solved, I will start trying to make the password access and no download limitation.
Again thanks so much for all your guidance

Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 07 2020 at 8:46pm
Use this element instead https://denislafrance.net/Element/ResponsiveHTML5Video.en-us.htm

use the Edit Media utility to fix the width for each proposed media.


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 07 2020 at 9:12pm
Thanks for that Hobby001

I had it already installed and running with the video adaptatif (you mentioned the element in previous posts)

I am sorry to insist in the other question.

How do I point the Video folder that I created within the project  to a different subdirectory in the server?

Thanks again for all your guidance
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 07 2020 at 9:52pm
When you select the video file check External URL and point to your file
Back to Top
 Post Reply Post Reply Page  123>
  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.062 seconds.