1
martyboy
myMedia/General how to stop people linking to video files?
  • 2005/11/28 17:55

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


Hey there,

I currently use the excellent myMedia module to stream a new video file every week to my visitors, the files are usaully between 20 - 40 mb in size and are stored in the media directory of the module /myMedia/images/media, Unfortunatley I have came across a site who has stolen the code for the media player and they are streaming my videos on their site basically stealing my valuable bandwidth.

Is there away I can stop people from hotlinking my video files in myMedia? I'm not looking for anything as major as a hack to the module perhaps something I can do with htaccess or something in cpanel? I already have image hotlinking disabled via cpanel.

I'm on XOOPS 2.0.13.2

Thanks for any help.
Michael Jackson = King Of Pop

Xoops = King Of CMS

2
martyboy
Re: myMedia/General how to stop people linking to video files?
  • 2005/11/28 18:22

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


OK, i found the following htaccess code when googling for some answers but it doesnt seem to work, i placed the .htaccess file into the myMedia/images/media/directory

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(mp3|avi|mpg|wmv)$ - [F]

Any ideas how I can get this to work?

Thanks
Michael Jackson = King Of Pop

Xoops = King Of CMS

3
gestroud
Re: myMedia/General how to stop people linking to video files?
  • 2005/11/28 18:23

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


If your hosting company provides you with a CPanel to work with your site, there's a function in it called either "Web Protect" or "Hot Link Protect" that should work for you.

4
Stewdio
Re: myMedia/General how to stop people linking to video files?
  • 2005/11/28 18:24

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Try putting the .htacess file in the root index of your site (public_html)

Hope this helps.
XOOPS Community Support

Login

Who's Online

307 user(s) are online (52 user(s) are browsing Support Forums)


Members: 0


Guests: 307


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits