Spam blogs and Buddypress

A couple weeks ago we posted that D’Arcy Norman has figured out a quick htaccess method to stop those sploggers from doing their automated signups.

You can modify those rewrite rules to work with Buddypress:

  • Replace yourbpsignupslug with the slug used for your BP signup (ex. register).
  • And, replace yourhomedomain with the domain of you home blog (ex. wpmututorials.com).

Add these rewrite rule before the #uploaded files:


# BEGIN ANTISPAMBLOG REGISTRATION
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .yourbpsignupslug*
RewriteCond %{HTTP_REFERER} !.*yourhomedomain.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://die-spammers.com/ [R=301,L]
# END ANTISPAMBLOG REGISTRATION

[Post to Twitter] Tweet This Post 


bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark
tabs-top  banner ad


13 Responses to “Spam blogs and Buddypress”

  1. slaFFik says:

    Thank you for sharing this information. I used captcha protection – but it’s not perfect. The more walls between users and spammers – the better.
    [rq=214,0,blog][/rq]Аддон к [CDPACK] – BuddyPress Russian Months v0.5

  2. Ricky says:

    Thanks for the BuddyPress explanation. I’m not sure how I would test this to make sure it’s working. Got a new site so it’s not like I would see a decline in spam registrations to measure against a baseline. Any ideas?

    Thanks

  3. [...] I can defeat the machine spambots thanks to what I learned from Norman D’Arcy here and Ron Rennick at WPMU Tutorials here, I cannot defeat the live human spambloggers who are paid to post.   Hey, I figure they are [...]

  4. [...] Spam blogs and Buddypress – WPMU Tutorials – [...]

  5. This would also block users who have turned off referrer reporting in their browsers. I’m guessing that is not a significant portion of users, but does anyone know?

    (It would also fail to block spambots smart enough to fake their referrer info. Just the usual arms race.)

  6. Kevin Heath says:

    How do I know what my sign up slug is?

    Sorry – I’m a WP newbe.

  7. Tom says:

    Would the slug always be register? I have
    RewriteCond %{REQUEST_URI} .register*
    as the entry for the slug and have deleted the WP MU register file and the bbPress ones also.

    I have no idea how splog registers are signing up but I am close to looking elsewhere for a solution 12 -20 splogs a day and a deny list of close to 120 IP addresses. It is getting real old using 1/2 hour a day of my life to clean up after these jerks.

    I know they are using an automated method because I installed BP-Registration-Options
    and although it does not really work well enough to use yet I could tell the amount of automated to actual sign ups. Almost all sploggers are automated on my site.

  8. Fouad says:

    Thank you!
    Here is a modified re-Captcha to work with BuddyPress.
    Hope this will help :)

    http://team.pookeo.net/2009/12/22/re-captcha-for-buddypress/

  9. Amir says:

    it doesn’t work. I pasted the following code in .htaccess file.

    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .register*
    RewriteCond %{HTTP_REFERER} !.*mysitename.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://die-spammers.com/ [R=301,L]
    # END ANTISPAMBLOG REGISTRATION

    but still blogs are being made by spammers. Is there any other solution to stop spammer?

  10. kwatog says:

    This worked prior to wpmu2.9. I got tons of splogs right after I upgraded.

    I don’t know if it’s a coincidence.

  11. Dmitri says:

    Sorry it might not be a correct place to ask, but it seems you know quite a lot about bp and I cant find this info anywhere else.

    My question:
    As I have a site in russian lang and when the group is created or forum it tries to use cyrillic in a slug, which messes everything up.

    How can I change rewrite rules for bp, so that instead of slug id is used?

    Thanks in advance

    Dmitri

Leave a Reply