Home arrow Forum

Remository Forum

 


<< Start < Previous 1 2 3 Next > End >>
vixmoa

Karma: 0  
Re:direct download links - "illegal download attem - 2008/02/07 09:14 Then, how can we link a remository file inside an article?

Remository should detect that is the same IP.

If direct link doesn't works nor Qickdown?
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:direct download links - "illegal download - 2008/02/07 09:20 QuickDown will give you a link, or for that matter you can use the download link produced by Remository in the lists of files. But it isn't a direct link.

Why not? Because if you offer a direct link ANYWHERE then it is wide open to abuse since anyone can use it to make YOUR files available from THEIR sites at no cost to them in bandwidth.

It is not safe to rely on IP addresses as you could have problems both ways - refusing legitimate downloads and allowing illegitimate ones - IP addresses can be faked, proxied, etc.

But if you really want to make files freely available, it isn't too hard to modify Remository to do that.

Post edited by: counterpoint, at: 2008/02/07 09:21
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
ignos

Karma: 0  
Re:direct download links - "illegal download - 2008/03/25 17:43 But if you really want to make files freely available, it isn't too hard to modify Remository to do that.

i want it really, can you modify for me. thank you for you hard no-commercial work.
  | | Sorry, you do not currently have permission to write here.
kenyoung

Karma: 0  
Re:direct download links - "illegal download - 2009/06/25 08:15 Could someone tell me specifically what function I need to call to get a direct link to a file? $file -> basicDownloadLink($autodown) returns a link that is not quite direct. What I'm trying to do with my repository absolutely requires direct links and I'm aware of the potential issues of users linking directly to my files.

Specifically, I'm looking for something that I could swap directly into line 230 of remositoryFileInfoHTML.php. Hopefully it's that simple, if not, please tell me where else I can make a change.

Post edited by: kenyoung, at: 2009/06/25 08:17
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:direct download links - "illegal download - 2009/06/25 21:52 I'm not certain, the code gets quite complex and its whole aim is to avoid direct downloading!

But I suggest trying modifications in ../com_remository/p-classes/remositoryFile.php around lines 376 to 384, the basicDownloadLink method. You could change it to:

Code:

      public function  basicDownloadLink ($autodown) {         // Force autodown so as to get direct download links         $autodown = true;         if  ($autodown) $function = 'download';         else $function = 'startdown';         if  ($this->islocal AND $autodown) $fname = $this->realname;         else $fname = null;          $repository = remositoryRepository::getInstance();         $downlink = $repository-> RemositoryBasicFunctionURL($function,$this->id, null, null, null, $fname);         return  $downlink;     }



You still won't get a permanent link, the link will only be valid for about a day before the check code changes.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
bujanga

Karma: 0  
Re:direct download links - "illegal download - 2009/09/20 23:25 Its not really that complex. The download link code is obfuscated by MD5 but the relevant part is created by the function makeCheck() in the file p-classes/remositoryRepository.php. Here is a breakdown:

($this->Time_Stamp.$interface->getCfg('absolute_path').date('md').$id.$func);

$this->Time_Stamp =
a UNIX timestamp returned by time()

$interface->getCfg('absolute_path') =
the absolute path to the storage location of Remository documents

date('md') =
the date in month/day format

$id =
Remository document ID

$func =
Set to download to allow direct download

For my own purposes, I made some adjustments to QuickDown to allow inline direct downloads from an article. If you are interested in more information, see my blog at http://dvector.com/oracle/2009/09/20/remository-inline-direct-download/

Enjoy
  | | Sorry, you do not currently have permission to write here.
<< Start < Previous 1 2 3 Next > End >>

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 9 guest online