Good day!
I’m creating a member section where members will be available to watch video sessions when they are logged in. Those videos are on another domain name since they are too large to upload it to shopify.
I’ve managed to display the videos but they are accessible through hotlinking which beats the purpose.
I’ve looked around on how to achieve this with .htaccess but there is no way to do this with Shopify.
Does anyone have a solution for this yet?
Hi @VladCaye ,
-
With video, you can use an HTML Video tag to display it.
-
If you want to check members login you just need to add this code:
{% if customer %}
Customer is logged in
{% endif %}
Refer https://shopify.dev/api/liquid/objects/customer
I really don’t understand the use of ‘htaccess’ for this.
Hope it helps!
Good day!
Thanks for your assistance. I am very familiar as to how to display member information in the account section.
My concern is to be able to showcase private videos to members, sort of like Kajabi or Vimeo, etc.
The reason why I’ve considered .htaccess was to try to limit the access to the actual file unless they are logged in the members area. The solution you proposed was the first thing I’ve tried but if the user right-clicks on the video, the media file location is easily exposed. And that’s what I am trying to prevent.
Current solution I’m working on is through JS. I’m trying to display a dynamic video link when members are logged in. Even if they right-click the video, the link displayed will be a dynamic link instead of the actual video file location. Make sense?