help needed.

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
shadowzone2020
-


Joined: 09 Feb 2004
Posts: 6

PostPosted: Mon Feb 09, 2004 7:02 am    Post subject: help needed. Reply with quote

I am running abyss web server for windows (newest version) for hosting alot of recent TV release animes (~200mb .avi files). I host over 97GiB of them, and have my server accesible to pretty much anyone who is familiar with fansub groups. The problem I run into is that due to my huge database, some users will become overwhelmed and download as many episodes as they can in succesion.

I downloaded ShotGun (http://poeticpollution.net/scripts/ShotGun/) and have been trying to get it to run for my abyss web server x1. I have poor perl coding skills, but can most likely mod this download counter to prevent users from being able to download more than two files that are roughly over 50 mb per 24 hours (to disregard images and html documents etc). For some reason I cant get ShotGun to run on the server even though I have properly configured and installed ActivePerl on the server.

I was wondering if someone could help me figure out what is preventing this script from running, or possibly refer me to another script which limits how much an IP address can download per 24 hours to prevent leech pigs.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Feb 09, 2004 6:23 pm    Post subject: Reply with quote

Why not try IRC out , I have setup a Fserve for my website
and it allows 2 people at a time and my internet still loads
up very fast , what you need to do is install sysreset and
type in a channel you want on EFnet and setup your fserve
so everyone that visits your site can download on that , all
I do is tell people that im hosting my 6 GB videos on IRC
from my Offspring Fan site http://www.offspringvideos.com
and they go their to download from me , go to my site if
you want help on IRC and click on the video section. 8)

You can find movie tutorials here and SysReset
http://os17fan.cjb.net/movies/
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Feb 09, 2004 7:09 pm    Post subject: Reply with quote

... And your script has an option to limit to 2 connections per ip per 24 hours ? :wink:
Back to top View user's profile Send private message
shadowzone2020
-


Joined: 09 Feb 2004
Posts: 6

PostPosted: Mon Feb 09, 2004 7:14 pm    Post subject: Reply with quote

Actually thats just the problem=p its IS for an mIRC channel, but I am behind an edu firewall and about 80% of the users who want to download cant because of the crazy firewall stuff. The web servers luckily can get past the firewall through an open gaming port, and usually has NO problems sending people files.

And actually I dont need it to only be Perl, it could be any of the cgi-type functions that Abyss Web Server supports, like PHP ASP MySql etc.

It wouldn't limit just two connections to the server a day per IP, it would limit the user to two downloads which were over ~50mb to prevent banning the user for just viewing images or html documents.

If anybody can help me out with this, or point me in the direction of a script that could limit the amount of bandwidth used by an IP in a 24 hour period, but not limit EVERYONE to a specified bandwidth, I could die a happy man.
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Feb 09, 2004 10:16 pm    Post subject: Reply with quote

Any chance of finding another gaming port you could run an FTP server over ? That'd be even easier than scripting, but if not, I'll see what I can dig up.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Feb 09, 2004 10:25 pm    Post subject: Reply with quote

If your talking to me , I didn't create SysReset , I just use it
to host all my files on my IRC channel on EFnet , I don't script
Back to top View user's profile Send private message Visit poster's website
shadowzone2020
-


Joined: 09 Feb 2004
Posts: 6

PostPosted: Mon Feb 09, 2004 11:05 pm    Post subject: Reply with quote

I did end up trying to get FTP to work, but the firewall that my edu has is capable of sniffing out FTP requests. An upside to my situation is I have unlimited bandwidth usage, but high upload speeds and lots of downloads for some reason makes people want to download everything they can.... just need to limit however much an IP can download per day automatically..
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Feb 09, 2004 11:24 pm    Post subject: Reply with quote

If they can sniff FTP they can sniff HTTP just as easily... Ever looked at SSL encrypted FTP ? :twisted: If you're set on using only Abyss and you'd like to play with encryption for downloads, you can use STunnel.

This ( http://www.ceesoft.com/fse/ ) sounds exactly what you want but unfortunately it's an add on for IIS. I'll keep looking :D
Back to top View user's profile Send private message
shadowzone2020
-


Joined: 09 Feb 2004
Posts: 6

PostPosted: Mon Feb 09, 2004 11:43 pm    Post subject: Reply with quote

Actually something that could interpret the access.log that abyss uses would be helpfull.
For example:
127.0.0.81 - - [09/Feb/2004:16:35:02 -0600] "GET /_secure/files/anomaly2k/index.php?path=Ai%20yori%20aoshi%2F&download=%5BKAA%5D_Ai_Yori_Aoshi_07.DVD_%5B795ABCEE%5D.avi HTTP/1.1" 200 204226969

is a line that states that ip 127.0.0.81 downloaded 204226969 bytes at [09/Feb/2004:16:35:04 -0600]

All the script would need to do is check the access.log maybe every time a website was called, or once every x minutes. Then it would tally how many bytes an IP has downloaded on 09/Feb/2004, and somehow block the IP from downloading anything else untill its a different day.

EG: a download quota system.


I have tried passive ftp, and they still filter it, but for some reason they allow http file servers on the open ports.
Back to top View user's profile Send private message
shadowzone2020
-


Joined: 09 Feb 2004
Posts: 6

PostPosted: Thu Feb 12, 2004 12:07 am    Post subject: Reply with quote

At the moment I am coding a perlscript to parse the abyss web server access.log and determine how much each IP address has downloaded.
It will have options to check aggregate file transfer amount per day, or aggregate file transfer per ip per day, write the info to a transfer log. Options to warn the IP that they have exceeded file transfer amounts, and an option to ban via blackice if they exceed the limit by a specified amount (for those sneaky people who have copied down URLs to download even if they cant see them). I will post it publically when I am done, which will hopefully be in the next day or two.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Feb 12, 2004 12:24 am    Post subject: Reply with quote

Awesome!

Hey abyss users , need all search engines to
list you , use the meta tag , it works , im finally
on msn.com search 8)
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group