کاربرد این مد محدود کردن کانکشن ( connection ) برای یک آپی یا چند آی پی.
ابتدا به روت سرور به وسیله SSH متصل شوید...
سپس دستور های زیر را به ترتیب وارد کنید:
cd /usr/src
wget
http://dominia.org/djao/limit/mod_li...nn-0.04.tar.gz
tar xzvf mod_limitipconn-0.04.tar.gz
cd mod_limitipconn-0.04
pico Makefile
find the line that reads APXS=apxs[/b]
change that to
APXS=/usr/local/apache/bin/apxs
press cntrl O to save
then cntrl X
// if your locations to apxs is different
locate apxs and copy the path
then paste that in
//
make
make install
service httpd restart
vi /etc/httpd/conf/httpd.conf
locate ExtendedStatus
Make sure ExtendedStatus is on and without the comment at the start
and add this line to every virtual directory you want to limit
or add it once to the main directory to limit all
<IfModule mod_limitipconn.c>
<Location /somewhere>
MaxConnPerIP 3
# exempting images from the connection limit is often a good
# idea if your web page has lots of inline images, since these
# pages often generate a flurry of concurrent image requests
NoIPLimit image/*
</Location>
<Location /mp3>
MaxConnPerIP 1
# In this case, all MIME types other than audio/mpeg and video*
# are exempt from the limit check
OnlyIPLimit audio/mpeg video
</Location>
</IfModule>
press cntrl O to save
then cntrl X
then service httpd restart
( دکمه کنترل +O را بزنید .
دکمه کنترل + ایکس را بزنید .
سپس آپاچی را ریستارت کنید.)
* یه سری توضیحاتش ( به زبان اصلی ) و نمونه ای از تنظیمش تو فایل .htm که پیوست شده هست... حتما دریافت کنید.
موفق و پیروز باشید.:clap: