wp-spam free will not banned his IP but it blocks the spam comments before being published or awaited for approval.
█ Webmaster & Hosting Forums
█ Professional Cpanel Hosting With Unlimited Features, 99.9% uptime Guarentee
█ www.cerisehost.co.uk
Just to let you know you can ban an IP address for a blog.
The easy way is:
>Step One
Add this to your .htaccess file at the root www directory for your blog (NOT your root folder, but the folder for your blog), in other words, don't overwrite the existing file.
order allow,deny
allow from all
> Step Two
Add the IP's to Ban.
deny from 11.22.33.44
deny from 111.222.333.4
One line for each IP address preceded by " deny from "
The .htaccess file will look like this:
order allow,deny
deny from 122.222.123.12
deny from 222.223.1.2
deny from 111.222.223.13
allow from all
If you wanted to block a range of IP (very handy when the block range of spammers are the same), the above would be like this:
order allow,deny
deny from 122.222.123
deny from 222.223.1
deny from 111.222.223
allow from all
(notice the missing octet for the above?)
You can also do the same thing for domains like this instead if you want:
order allow,deny
deny from www.someSpammer.com
deny from www.google.com
deny from www.ihatespam.com
allow from all
Be careful if you choose the domain way as you can block inocent users by mistake (say if a domain name owner changes etc)
If you wanted to apply it to the whole website, instead of just the blog, simply place the .htaccess file in the root folder of your website.
Lastly if there is no .htaccess in your blogs root directory you can just make one (rarely needed)
Last edited by Aquinas; 6 June, 2009 at 02:37 AM. Reason: html code and spelling
Most of the spam is coming from spam bots. You need to block the bots. Blocking the ips isn't going to do any good.
Bookmarks