0 Schlabo's Scripts

Schlabo's
Scripts
- home -


Scripts
 Information
 Admin
 POTD
 DL
 SP
 COW

Download
 Download

Installation & Usage
 Overview
 Installation
 Q&A: Admin
 Q&A: POTD
 Q&A: DL
 Q&A: SP
 Q&A: COW

Support
 Troubleshooting

General
 Startpage
 What's New?
 Quotes
 Future
 Contact
 Privacy
 Terms of Use
 Copyright

 


DL-Q&A

< Back to the Overview...

 

 How can I track a file with the DL-Script?

If you just link directly to a file the download-script will not even know of that and therefore it can't track the download. There are three ways to let the script track a download, after you add a file to the database the script will display a samlple-link for each of these three methods:

 

 1. Linking to the Alias:


Example: "<a href="http://www.yoursite.com/cgi-bin/schlabo/dl.pl?Testfile">linktext...</a>"

The advantage of this method is that you don't have to specify the URL which makes it harder for other sites to copy the link and steal your bandwidth. The downside is that if you have several mirrors for a file which all have the same alias you can't specify which one of the mirrors it should take, it will always use the most popular one.
If you're using spaces in your Alias-Names you should replace them with underscores, because otherwise the browsers will change a " " to "%20", the script won't find an entry with %20 in it of course. Example: Your alias is "My Alias" - link to it using "dl.pl?My_Alias".

 

 2. Linking to the real URL:


Example: "<a href="http://www.yoursite.com/cgi-bin/schlabo/dl.pl?http://www.yoursite.com/testfile.zip">linktext ...</a>"

Here you link directly to the full URL of the file (don't forget the http:// at the beginning!). The disadvantage is that download-managers like Go!Zilla or GetRight can cause problems because they think this is a file but they only get another Text/HTML-page. Therefore it's better if you use method 3 if you want to link directly to the URL.

 

 3. Linking to a modified URL:


Example: "<a href="http://www.yoursite.com/cgi-bin/schlabo/dl.pl?http://www.yoursite.com/testfile---zip">linktext ...</a>"

The only difference is that you replace the "." in front of the file-extension with a "---", the script will automatically replace it with a ".". The advantage is that download-managers like Go!Zilla or GetRight will not think that this is the direct URL of a file and therefore they will not interfere and try to capture it.