[Plugin: Cookies for Comments] Adapt for BP Multi-Network Anti Splog ?????
-
Just about a year ago Ipstenu (Mika Epstein) kindly showed us how to use this plugin as an anti splog device in a buddypress set-up.
# BEGIN ANTISPAMBLOG REGISTRATION <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*xxxxxxxxxxxxxxxxxxxxxxxxxxx.*$ RewriteRule ^register - [F,L] RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .register* RewriteCond %{HTTP_REFERER} !.*domain.com.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) https://lmgtfy.com/?q=spammer [R=301,L] </IfModule> # END ANTISPAMBLOG REGISTRATION
It works.
Now in a multi-network set-up, and where you want registrations to come via specific networks, there will be a different cookie for each network.
Now
# BEGIN ANTISPAMBLOG REGISTRATION <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*xxxxxxxxxxxxxxxxxxxxxxxxxxx.*$ RewriteRule ^register - [F,L] RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .register* RewriteCond %{HTTP_REFERER} !.*location1.domain.com.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) https://lmgtfy.com/?q=spammer [R=301,L] </IfModule> # END ANTISPAMBLOG REGISTRATION
works for location 1.
But How to add for location2, location 3 etc ?
I tried repeating
<IfModule mod_rewrite.c> new cookie and new location </IfModule>
but it crashed the site.Any ideas really appreciated.
https://www.ads-software.com/extend/plugins/cookies-for-comments/
[ Please do not bump, that’s not permitted here. ]
- The topic ‘[Plugin: Cookies for Comments] Adapt for BP Multi-Network Anti Splog ?????’ is closed to new replies.