[Introduction]
Feature I : restrict max download amount of a day
for each IP
This addon is used for those who like to create shared account without download
ratio , with this addon you can restrict the maximum amount of kilobytes an
user can download from a fixed IP address , no matter what account is he using
.
Feature II : restrict max download amount of a
day for all the users (with no ratio) in a group
This feature allows site-owners to add as many no ratio accounts in a group
as they want , however without letting them to download too much from you ,
for example if you set the limit to 1000mb , all the user accounts in normal/guest
level with no ratio can download at most 1000mb totally during a day
* for your convenience
, this the feature I,II does not affect root/super level
users
* this addon is not suitable for ftp sites offering very big files , since download
filesize is counted before an user actually finishes his download
[Installation]
1. Prepare a place for this addon e.g. c:\scripts , extract this file into that
directory
* note that the path can not contain space character , or you have to use short
path name
2. edit *.ftpd file , find
onFilePreDownload=
edit it and make it
* if you are using Feature I
onFilePreDownload=ask://c:\scripts\IpDailyLim.exe "%@" "%i"
"%m" "%E" "%$" "i"
* if you are using Feature II
onFilePreDownload=ask://c:\scripts\IpDailyLim.exe "%@" "%g"
"%m" "%E" "%$" "g"
note that if you install this addon on other path , you will need to change
the base path
3. open IpDailyLim.ini in c:\scripts , edit the raidenftpd base path , without
trailing \ , and edit the
max downloadable kilo bytes a client is allowed to download from the same IP
address
4. restart or reload your server
note: if you are using feature 2 , you can add exclusion groups in IpDailyLim.ini
SKIPGRP=group1,group2
no space character is between in groups