Forum Moderators: coopster & phranque

Message Too Old, No Replies

simple scripting help

         

shadowzone2020

11:11 pm on Feb 8, 2004 (gmt 0)



Ok, I am a noob at perl scripting. In the past I have taught myself alot of different languages, but I am drawing a major blank on perlscript. If somebody could help me out by starting a little bit of this code, I would be very thankful. I need a simple script that logs to a database how many times an IP has downloaded a file which is over the size of x(whatever MB). Once the user has downloaded the set limit of the specified minimum MB files, the script will block their IP for 24 hours, and alert them with a simple warning that they have downloaded too much for that day.

I host a file server with well over 97 GiB of files using abyss web server (http://www.aprelium.com/) and right now I have configured it to support perlscript with active perl. Any help is welcomed.

Hissingsid

11:09 am on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

There's some free scripts on the CGI resources Index that do some of what you want. They are listed under perl: file management: File downloading. If none of them do exactly what you want studying how they work should give you a good starting point.

Best wishes

Sid

PS I've stickied you the URL