Archive for August, 2006
August 9th, 2006
thttpd providers excellent and easy to set-up bandwidth throttling based on files, directories, file types or default web server bandwidth speed.
If you want to cap the default bandwidth of your thttpd server to 512Kbps you will need to add the following configuration line to your thttpd config file:
** 51200If exe download files are consuming too much of your upstream, consider limiting download speed for all executable files via:
**.exe 102400
The above configuration line limits all .exe file downloads to max of 1Mbps per second at any time.
You can also limit bandwidth speed on some specific directory,… Read the rest of this entry »
August 8th, 2006
At this time, there are quite a few modules available that will stop traffic leech and limit simultaneous connections, bandwidth based on files, virtual host and so on.
mod_bw
Apache 2 (also available for Windows platform):
http://www.ivn.cl/apache/
mod_cband (Apache2):
http://cband.linux.pl/
mod_bandwidth
http://www.cohprog.com/v3/bandwidth/doc-en.html#
August 7th, 2006
mod_security is a powerful attack shield that can block http requests based on pre-defined rules. It’s a nice shield against known software exploits (e.g. non-patched forums, scripts etc)…
A non-aggresive rule set:
# Turn the filtering engine On or Off
SecFilterEngine On
# Change Server: string
SecServerSignature “Apache”
# This setting should be set to On only if the Web site is
# using the Unicode encoding. Otherwise it may interfere with
# the normal Web site operation.
SecFilterCheckUnicodeEncoding Off
# The audit engine works independently and
# can be turned On… Read the rest of this entry »
August 2nd, 2006
If you are getting attacked or simply burning too much traffic (your upstream provider says so)… it’s perhaps the best time to check out how much of traffic are you really bursting?
There is a software (freeware of course) that perfectly counts/measures your server traffic usage so go ahead and use it.
http://dast.nlanr.net/Projects/Iperf/
August 1st, 2006
If you have some CPU power to spare and you are looking to save some $$$ on the bandwidth bill you have an option for PHP.
Open php.ini (usually located in /usr/local/lib/php.ini) and uncomment the following line:
output_handler = ob_gzhandler
With this value set you will redirect all output to the function, in this case ob_gzhandler that will compress output to the web clients that support using gzip or deflate encoding.