Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:24 am EST

Geeklog Forums

Prevent direct linking with Filemgmt plugin?


Theophile

Anonymous
I set up the Filemgmt plugin on my site because I have some mp3's available for download and I have found that they are directly linked by numerous websites and I want to put a stop to it. However, it looks like files served up through Filemgmt must reside in the document root and as such, are able to still be directly linked. Is there a way around this or some other solution?

Thanks!

(P.S. I would also like to know if it is possible to import into Filemgmt files that already exist on the server, rather than having to re-upload them through the web interface.)
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog actually ships with a download class that can serve files from outside the webroot - although we don't use it in Geeklog itself. No idea if Blaine has any plans to use that in the File Management plugin. You may want to ask on his site.

For the time being, you can at least change the location of the download directory and maybe block search engines from accessing it. That may help at least a little bit.

bye, Dirk
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
Check you hostings cpanel theres usually an option there to disable hotlinking otherwise use a htaccess file with something like (code is not tested)

Text Formatted Code
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|zip|rar|ace)$ - [F,NC]

Dazzy
 Quote

Theophile

Anonymous
While on the subject of the Filemgmt plugin, I'm using it to serve up some mp3 files, but the default action when clicking the download links is to start streaming the file. Is there a way to force the file to be downloaded rather than streamed?

Thanks!
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
Someone please correct me if this is wrong but the best way is to compress the file, there is no definate way I know of which allows you to switch a media file to download file on the fly. There are a number of php scripts which would allow you to Force the download but if someone knows the url to the file they can still stream it afaik.


Dazzy
 Quote

Theophile

Anonymous
What I had in mind was something similar to the Mediagallery plugin, which has different links for media files for "download" and "stream" clicking on one link over the other forces the specified action. I don't know how this is accomplished, however, and don't know if it's simple enough to be written into the Filemgmt plugin.
 Quote

ironmax

Anonymous
Just out of curiosity, have you considered the Jinzora plugin for geeklog? Or you can run that on a separate sub-site. Then you wouldn't have to worry about people downloading or streaming from your main site.

Michael
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
I set up a music repository site for our local community earlier in the year, had looked at using Geeklog and the Jinzora plugin but wasnt what I needed so I settled on Jamroom.

Probably not what you're looking for but why not just use the media gallery if it provides the system you want? Not sure how much Blaine is planning to develop the file management plugin.
Dazzy
 Quote

Theophile

Anonymous
I do want people to be able to download the mp3s, but I don't want them to be directly linked from other websites. I want people to be able to download them easily, and not have to fiddle with them streaming by accident. That's all. The Mediagallery plugin, for this purpose, is actually too feature-ful.
 Quote

All times are EST. The time is now 12:24 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content