WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] .htaccess redirect for splogs (9 posts)

  1. theotherlebowski
    Member
    Posted 3 years ago #

    hi all, i was just wondering if anyone out there who knew about .htaccess files and the code that goes into them could take a peek at this and tell me if it will mess up a multisite install or if it's actually a good thing.

    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-signup.php*
    RewriteCond %{HTTP_REFERER} !.yourdomain.tld. [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://someotherpage.tld/ [R=301,L]

    i found it here and the code was written by D'Arcy Norman. (credit where it's due!)

    cheers.

  2. Works fine :) I use it myself!

  3. theotherlebowski
    Member
    Posted 3 years ago #

    groovy :D so i can add it straight in and it won't interfere with any of my other rules?

  4. If you only have the standard rules, no, it won't. If you have something custom, well, I can't guess. I will say to put it ABOVE the section for WordPress.

  5. theotherlebowski
    Member
    Posted 3 years ago #

    nice one :D pretty sure the only rules in there are the ones that WP generated when i created the network. i haven't added anything to it for fear of stuffing my site!

  6. theotherlebowski
    Member
    Posted 3 years ago #

    one thing though, i'm using buddypress on the main site and it uses register.php rather than wp-signup.php. do i have to change anything in the rule to account for this?

    ta. :)

  7. Yes, you have to change it for buddypress.

    http://wpmututorials.com/how-to/spam-blogs-and-buddypress/

  8. theotherlebowski
    Member
    Posted 3 years ago #

    andrea_r = legend! :D

  9. Duuude.

Topic Closed

This topic has been closed to new replies.

About this Topic