b2evo: comments or trackback spams

by prettyscripts on 2009-06-06 15:26:36

b2evolution

every now and then i get spams in my trackbacks and comments with non-sense message. not those that tell you how to be a man kind of spam. nor advestisements of some sites or services. just some random string that doesn’t make sense.

i can’t block it because it’s using google’s various urls as url. this blog is setup to allow traffics from search engines and that will block 99% of my traffic!

there's a solution, whoo’s antispam technique to rename url for comments and trackbacks:

  • rename the default htsrv to anything (no spaces)
  • edit conf/_advanced.php, locate $htsrv_subdir and change to the new name above

this did cut down some spams. but i still get them. somehow they managed to find the new url even if i do change it regularly!

i don’t know what these non-sense spams do. is it pranks? or there are hidden hacks? if you know something, please leave your responses in the comments.

i didn’t think about blocking ip addresses because it can be easily changed, eg it’s changed when you change isp. but some close investigation shows that they are mostly from the same ip addresses or in the same group. ok block them with .htaccess!

in .htaccess, locate this section:

Code:

<Limit GET POST>
    order allow,deny
    deny from [ip address here]
    deny from [ip address 2 here]
    allow from all
</Limit>

this did stop some spams.

Tags: antispam, b2evo, htaccess

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)