Install curl 7.24 on CentOS 6.2

– Make sure to check PHP-FPM post.

– install from source

yum remove curl curl-devel

tar xfj curl-7.24.0.tar.bz2
cd curl-7.24.0
./configure --prefix=/usr
make install
#check version
curl -V

– To install with support

./configure --with-curl=/usr --with-curlwrappers

disable root login

This will disable SSH login as root

sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config  && \
/etc/init.d/sshd restart

Using iptables to block ips that spam or attack your server

Check Configuring iptables on CentOS post.

Why should you do that while APF or CSF can do it automatically?
Because APF/CSF could block an important bot testing your server to add to search index. So reviewing every ip would be a daily task!
Ok, so how?
using RHEL4, centos4