1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

How to stop spammer

Discussion in 'Security' started by case101, Oct 13, 2010.

  1. #1
    I have a blog using PHP/Apach/MySql: http://www.consultingcase101.com.
    I just found from log file that a spammer IP 213.5.64.20 attack my blog every 20 mins. I already blocked it from .htaccess file. Is there anyway to complete block this IP so that it won't attack my blog anymore? any suggestions??

    [Wed Oct 13 01:09:55 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 01:09:55 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 01:32:14 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 01:32:14 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 01:54:34 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 01:54:34 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 02:16:36 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 02:16:36 2010] [error] [client 213.5.64.20] client denied by server configuration:
    [Wed Oct 13 02:40:01 2010] [error] [client 213.5.64.20] client denied by server configuration:
     
    case101, Oct 13, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    You can block the IP on the server level either using iptables OR route. Do you have root access to the server?
    If not, contact your hosting provider and ask them to block the IP.
    If you have the access, you can block the IP using

    iptables ::
    make sure you save iptable rules once
     
    madaboutlinux, Oct 14, 2010 IP