sash_007
04-05-2010, 08:20 PM
Hello friends,
I have been getting spam commnets in my blog i guess its a bot so
i first tried wp-ban plugin but it failed then i tried this code
ErrorDocument 404 /404/index.php
order allow,deny
deny from 213.5.71.12
deny from 188.138.48.149
allow from all
#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^BadBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^EvilScraper [OR]
RewriteCond %{HTTP_USER_AGENT} ^FakeUser
RewriteRule ^(.*)$ http://go.away/
in my htacess file on my blog folder
but its failing too:confused:
weboutloud-Chris
04-05-2010, 08:49 PM
Hello friends,
I have been getting spam commnets in my blog i guess its a bot so
i first tried wp-ban plugin but it failed then i tried this code
ErrorDocument 404 /404/index.php
order allow,deny
deny from 213.5.71.12
deny from 188.138.48.149
allow from all
#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^BadBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^EvilScraper [OR]
RewriteCond %{HTTP_USER_AGENT} ^FakeUser
RewriteRule ^(.*)$ http://go.away/
in my htacess file on my blog folder
but its failing too:confused:
For starters, try changing the
order allow,deny
deny from 213.5.71.12
deny from 188.138.48.149
allow from all
to
order deny,allow
deny from 213.5.71.12
deny from 188.138.48.149
allow from all
gotlivechat
04-05-2010, 10:50 PM
I think you're going to find the manual-entering of IP addresses not very effective as those chuckleheads will keep changing their IPs. Have you tried captcha of some sort?
Have you also tried using akismet?
sash_007
04-06-2010, 05:34 AM
i do use akismet for my blog
but the htaccess method isnt working on the other hand i refrain from using captcha as its puts off lots of comment posters
this ip 213.5.71.12 is areal headache for me its a bot i guess posting spam links daily
lonea
04-06-2010, 02:06 PM
Blocking of bots are kind of useless. As they can always fake the user agent.
gotlivechat
04-06-2010, 09:19 PM
i do use akismet for my blog
but the htaccess method isnt working on the other hand i refrain from using captcha as its puts off lots of comment posters
this ip 213.5.71.12 is areal headache for me its a bot i guess posting spam links daily
Yeah the CAPTCHA can be a pain. I was trying to enter CAPTCHA info earlier today and it kept failing even though I know I eventually had the words correct!:mad:
foobic
04-06-2010, 11:19 PM
Your original "Deny from" code is correct - it should work to deny that IP address provided that AllowOverride Limit is enabled on your account (which it normally would be). As an experiment, try blocking your own IP address using another "Deny from" line and see if that works.
Either way it's probably futile though - as others have said the spambots will change IP addresses regularly and invariably send a fake referrer. Is there some reason why Akismet doesn't work for you?
sash_007
04-10-2010, 01:13 AM
Your original "Deny from" code is correct - it should work to deny that IP address provided that AllowOverride Limit is enabled on your account (which it normally would be). As an experiment, try blocking your own IP address using another "Deny from" line and see if that works.
Either way it's probably futile though - as others have said the spambots will change IP addresses regularly and invariably send a fake referrer. Is there some reason why Akismet doesn't work for you?
dont know why akismet failing in this case although it blocks many:confused: