Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   Disableing Download accelerators. (https://novahq.net/forum/showthread.php?t=12444)

XenoMorpH 01-06-2004 06:12 PM

Disableing Download accelerators.
 
Hi, I'm running a phpnuke website. When people download files off my site using a DL-Acc. They can c the direct-DL-link. When using the default Windows DL-link the link is not visible.

Like on this site, it's not possible to download files through a DL-acc. How can I stop people dopwnloading with a DL-Acc?

Sal UK 01-06-2004 07:33 PM

LOL sorry XenoMorph, Doh I thick The compared was comming up compairing to mine lol I didnt know it done that.

XenoMorpH 01-06-2004 07:37 PM

3D mark score wrong? Don't think so.........
BTW, why post it here.........

Scott 01-06-2004 07:39 PM

We use a custom php coded script for downloading, it hides the path when sending the file to your browser as a header attachment. Download accelerators do not act as a browser therefor they cannot find/accept the actual file sent by the header attachment.

It's not the perfect explination but I dunno how else to explain it.

Scott 01-06-2004 07:40 PM

Re: Disableing Download accelerators.
 
Quote:

Originally posted by XenoMorpH
How can I stop people dopwnloading with a DL-Acc?
Send the file as a http header using php. You will have to modify some php in php nuke.

XenoMorpH 01-06-2004 07:41 PM

Hmmm....what do you mean by that?

Scott 01-06-2004 07:42 PM

http://us2.php.net/manual/en/function.header.php

XenoMorpH 01-06-2004 07:43 PM

Tnx, I'll try, byt I'm not that good with php tho.

Scott 01-06-2004 07:45 PM

Somthing like this:

PHP Code:

<?
$file
="/path/to/file.ext"
Header ("Content-Type: application/octet-stream"); 
Header ("Content-Length: ".filesize($file)); 
Header"Content-Disposition: attachment; filename=".$file.""); 
readfile($file); 
?>


XenoMorpH 01-06-2004 07:47 PM

Oh man, I really have to get me a book about php LMAO.........I feel dumb :/

XenoMorpH 01-06-2004 08:11 PM

When I save the code as aphp file and run it from my website, it downloads the file without the DL-acc, but how can I let it DL a file?

XenoMorpH 01-22-2004 09:31 PM

Got a script from someone. It let's files only be downloaded by windows default download, and there's no way to retreive the exact URL of the file, AND it's not leechable at all!!!

Ddin't use the code aboce tho....just letting u guys know prob solved.

Hellfighter 01-23-2004 01:00 AM

personnaly i like using the DL-Acc for big files it helps, but i under stand about leech there are some jerks who like to leech on to files, i am not one of them. i use Netleech not dl-acc its better and someway its totally good i can upload to my FTP better were dl-acc can't do it.


All times are GMT -5. The time now is 10:51 AM.

Powered by vBulletin®