Blocking IP

Blocking IP

Posted by: nocloo
Posted on: 2006-02-20 14:28:00

Is there anyway I can put an access list to block a certain IP before it hits my Web server ? Some idiot is running a DoS on my server and right now my only option is to put his IP in the .htaccess deny list.
However, with 100-200 hits a seconds, it took up CPU from other users and disk space(logs) and I don't want to get moved because I used too much CPU.

Thanks
==

Re: Blocking IP

Posted by: silkrooster
Posted on: 2006-02-20 14:53:00

yep, use a text editor to create a plain text file. In the htaccess file put:

Order Deny,Allow
Deny from 0.0.0.0
Allow from all

Just replace the example ip address with the one you wish to deny. Windows does not allow an extention without a files name so save the file as .htaccess.txt, upload the file then rename it by removing the .txt and you should be done.
Silk

Re: Blocking IP

Posted by: wjd
Posted on: 2006-02-20 14:53:00

E-mail support, let them know what is going on. You might also want to consider contacting his ISP.

digitalrundown.com
Promo Code: WJD97 - $97.00 off any new DreamHost plan (except month-month payments).

Re: Blocking IP

Posted by: nocloo
Posted on: 2006-02-20 14:56:00

I'm already doing the .htaccess. But I'd prefer to block on the firewall side, ie. ipfilter so I do not waste any ressource to process the logs, or overload the apache server in processing those request.
==

Re: Blocking IP

Posted by: Raz2133
Posted on: 2006-02-20 15:04:00

In reply to:

Is there anyway I can put an access list to block a certain IP before it hits my Web server ?


Make a note of the IP address and email support, I am sure they'll resolve the issue pretty quickly.

Mark

Tags: cpudisk spacehtaccessidiotdenylogsdosrunningweb server