PDA

View Full Version : Less Traffic Please!!!!


austina
07-13-2001, 02:24 AM
Hi, stupid C|Net posted my program on their site, which was shared with ZDnet, and for some reason lots of spanish sites and my bandwidth is really going fast. Ive renamed the file that its linked to lots of times, but they always get the new URL and put it up. Is there a script that can intercept a download and make someone register with their email and stuff first. That will make lots of peeps back out. so for example, instead of setup.exe downloading, when someone types in that ,it will display a page asking them to submit name and email and then let them download? Please cause even when i rename it some how they get the new name. And its a big program

cwhtree
07-13-2001, 02:52 AM
Give this page a look, one of these scripts might help.

http://cgi.resourceindex.com/Programs_and_Scripts/Perl/File_Management/File_Downloading/

austina
07-13-2001, 02:58 AM
But the thing is all of those scripts require me to make cnet link to a cgi script instead of a exe/zip. and cnet doesnt do that. At least when i tried it. I need it to sit and wait for someone to request Win9xMe.exe, or Win2k.exe and when they do take them to a different page.

Dolphyn
07-13-2001, 10:18 PM
You could use mod_rewrite ... something like the following might have the desired effect. RewriteEngine on
RewriteCond %{REQUEST_URI} Win9xMe.exe
RewriteCond %{HTTP_REFERER} cnet
RewriteRule ^(.*) registrationform.html [L]My idea is that if anyone clicks a link from CNET to Win9xMe.exe, they would get your registration form instead. You could customize this to work as desired. I wrote this more-or-less off the top of my head, so you might have to do some fiddling to make it work.

See my tiny site www.modrewrite.com for some convenient links to mod_rewrite information. :)

Dolphyn
07-14-2001, 12:47 PM
(1) mod_rewrite is not installed on the Alabanza servers, but it IS available on the new servers

(2) You would place the code in a file called ".htaccess" in the same directory as your .exe file and the registrationform.html file

(3) Instead of using CNET as a condition, you might prefer to do something like "if there is a $HTTP_REFERER and it doesn't contain austina.net" -- I leave this as an exercise to the reader. :-)