Post details: Using SURBL for blog spam

03/20/05

Permalink 02:17:52 pm, Categories: General, 160 words   English (US)

Using SURBL for blog spam

b2evolution has some simple blog antispam features, but it relies on a list of strings that in my opinion is not very scalable. I have been wanting to add SURBL support for awhile, and finally did. It was much easier than I expected. I had found some complicated solutions to do this in PHP, but really all I needed was URL parsing and DNS functions, both of which PHP has. All I did was modify the antispam_url() function in _functions_antispam.php with this PHP code. It also makes sure any URL domain has a proper MX record before it is accepted.

The b2evolution developers suggest making plugins for modifications, but I felt the above too simple to warrant class inheritance and all that crap. We'll see how it works. Unfortunately, SURBL is mostly for links in spam email, and I doubt their submission form would accept blog comment spam. Anyhow, I think it should help somewhat.

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Viraj's Weblog

Donate to keep this site going!

Amount USD $

June 2011
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution