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.

Block Frequent Comment Spammers to your Blog using htaccess!

Discussion in 'Blogging' started by vicdigi, Apr 27, 2008.

  1. #1
    If you have a frequent spammer to your blog and have been unable to prevent them from posting comment spam then the following should in effect stop them.

    order allow,deny
    deny from 89.149.205.199
    allow from all

    Add the above code to your htaccess file in the root of your site. Change the IP address to reflect your biggest spammer followed closely by comma if you have several spammers and this will simply deny them further access to your blog.

    We were receiving over 20 spam comments to our site and since adding this little bit of code there has been none. :)
     
    vicdigi, Apr 27, 2008 IP
    Analyst likes this.
  2. Analyst

    Analyst Well-Known Member

    Messages:
    623
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Doesn't Akismet work fine? I mean, what difference this makes?
     
    Analyst, Apr 27, 2008 IP
  3. vicdigi

    vicdigi Banned

    Messages:
    1,917
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Askimet just wasn't producing the goods unfortunately!
    This little code has worked wonders for killing off my 2 big spammers.:D
     
    vicdigi, Apr 27, 2008 IP
  4. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,825
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #4
    This is only useful for IPs that don't varies, but what I get are spammers with a lot of different IPs.
     
    wisdomtool, Apr 27, 2008 IP
  5. vicdigi

    vicdigi Banned

    Messages:
    1,917
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You are absolutely right. This is the precise reason it has worked so well for us.:)
     
    vicdigi, Apr 27, 2008 IP