theotherlebowski
Member
Posted 2 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.
Works fine :) I use it myself!
theotherlebowski
Member
Posted 2 years ago #
groovy :D so i can add it straight in and it won't interfere with any of my other rules?
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.
theotherlebowski
Member
Posted 2 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!
theotherlebowski
Member
Posted 2 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. :)
theotherlebowski
Member
Posted 2 years ago #