limit home 40 Any /etc/ftp.overlimit limit (Web hosting companies) world 120
Sunday, September 30th, 2007limit home 40 Any /etc/ftp.overlimit limit world 120 Any /etc/ftp.overlimit The first example limits the number of users in the home class (which you assigned your local users to) who can be connected at any one time to 40. The world class of users is limited to 120 simultaneous connections to your server. If the maximum number of connections for a group is reached, a connection from the user is refused and a message that you created in /etc/ftp.overlimit is presented to the user. The keyword Any indicates that this limitation is in effect on any day. You could, instead, assign the particular limit definition to apply to a particular day or time of day. For example, to set a limit that applies only on weekends, you could do the following: limit world 140 SaSu /etc/ftp.overlimit You can also create a limit entry based on time rather than days. To indicate a time period from 10 p.m. to 5 a.m. where access could be extended, you would enter the numbers 2200 0500, instead of SaSu, in the example. If conflicts between limit entries occur, the first matching limit takes precedence. Limiting uploading and downloading Downloading is what most people go to FTP sites to do. Typically, the disk area assigned to anonymous users contains documents or software that can be freely downloaded to your computer over the network. Some options, however, enable you to limit how much of the computer’s resources someone can consume while downloading files. The following sections describe some of them. File limits Using the file-limit parameter, you can limit the number of data files that a user can transfer in a given session based on user class. Here are some examples: file-limit total 100 home file-limit in 5 world file-limit out 30 world The first example allows all users in the home class (which we defined as belonging to your domain) to download and/or upload up to 100 files during an FTP session. To place limits on what the outside world can upload to your computer, the world class is limited to 5 incoming file transfers (uploads) and 30 outgoing transfers (downloads) per session. If no class is indicated, the entry applies to all users who don t fall into a class that already has file-limit defined. Data limits Instead of limiting the number of files a user can transfer, you can limit the amount of data that can be transferred by a user. Here are some examples: byte-limit total 102400000 home byte-limit out 51200000 world byte-limit in 25600000 world The byte-limit parameter limits the amount of data transferred during a session to a certain number of bytes. The first line shows that the total amount of data that a user in the home class can transfer during a session (both in and out) is 102400000 bytes (about 100MB). Someone assigned to the world class can take (out) only 51200000 bytes of data during an FTP session (about 50MB). A user in the world class can also upload only 25600000 bytes of data during a session (about 25MB). Note
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.