New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

how can we block direct access...?

  • hasan
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0

how can we block direct access...? was created by hasan

Hi,
I uploaded videos to the server with ftp program.
I created different categories, and these categories have been arranged for registered users to see.
I want to show to the vıdeo to only the regıstered users not general public.For example if anyone types
" xxxxxx.com/media/com_allvideoshare/engli...abby_and_herlies.mp4 type", they can reach to the video without registering the platform.
Thus, how can we block direct access by typing the web addres and only allow to the registered users?
9 years 8 months ago #7193

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: how can we block direct access...?

Then, you need to do "Hot link protection" in your .htaccess file to block direct access for your video files. In such case, you need to use relative file paths to add your videos in All Video Share component back-end.

Kindly follow perishablepress.com/creating-the-ultimat...hotlinking-strategy/
9 years 8 months ago #7195

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0

Replied by Bo on topic Re: how can we block direct access...?

I have the same need to block access in my site and tried to make "Hot link protection" in accordance with Perishablepress. It does not work.
Can anyone describe in more detail how to do?
My videos are stored in a subfolder to /com_allvideoshare.
8 years 11 months ago #7739

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: how can we block direct access...?

Kindly try the following and it works well for me,
RewriteEngine On
 RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?MYDOMAIN.COM [NC]
 RewriteRule \.(mp4)$ - [NC,F,L]
8 years 11 months ago #7740

Please Log in or Create an account to join the conversation.

Time to create page: 0.114 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies