@matt55 – The php errors still continued so it was not due to using Server Protocol. I am not exactly sure what action the spammers are doing in combination with the .htaccess code that is generating the php errors, but for now I just suppressed them by adding an @ symbol infront of strstr below until I can analyze this some more. /buddypress/bp-core/bp-core-template.php code line 864.
if ( !empty( $page_template ) && @strstr( strtolower( $page_template ), strtolower( $component ) ) ) {
Yep, I downloaded it from github. I have a bunch of customized security things going on so most likely one of the other security measures I have in place is causing the issue/problem. I will figure this out tomorrow when I have some more spare time.
Lately the Spam Registrations were getting way out of control – 1 per minute – so I had to get something in place quick. Yuck.
@aitpro
Are you using the plugin on github?
https://github.com/bphelp/bp-spam-killer
Or Are you using the code on pastebin which I could not get valid users registered either.
http://pastebin.com/kzxCqSb8
On my test server the github plugin allows registration for valid users but I am not really sure how effective this method would be at preventing spam registrations. Any feedback is appreciated!
@bp-help – I tested your plugin and for whatever reason on my site it prevented good registrations. I will isolate exactly why that is on my particular site.
@matt55 – I did some more research and built on your .htaccess code. A php error was occurring due to using Server Protocol so per jdMorgan “the htaccess Master” 😉 the better condition check is The Request.
Special thanks to jdMorgan a true htaccess Master
# BuddyPress Anti-Spam Registration
RewriteCond %{REQUEST_METHOD} ^POST
# only match the register page URI
RewriteCond %{REQUEST_URI} ^/register/$
# domain referer is better than IP - allows for subdomains
RewriteCond %{HTTP_REFERER} !^.*ait-pro.com.* [OR]
# Blank or single hyphen user-agent spoofers or curl
RewriteCond %{HTTP_USER_AGENT} ^(|-?|curl)$ [OR]
# HTTP request header
RewriteCond %{THE_REQUEST} HTTP/1\.0$
RewriteRule ^(.*)$ /spam-prevention [R=301,L]
i’d buy that for a dollar!
😛
@mattt55
Per your request I removed your credit for the plugin.
@mattt55
Well I gave you credit because you was my source, if you ever come across the original author then I will credit them. As for the jQuery method see:
http://pastebin.com/kzxCqSb8
I added a _inc file to the plugin that contained the my.js file. See line 33 as to how I implemented it. Really not sure what I did wrong so have a look and see if you notice any errors.
@bphelp
Please don’t give me any credit for the honeypot idea – I got that one from someone else (I don’t remember who or where) and I probably almost completely copied the code as well…
The 4th method (jquery, cookies and the “10 second rule”) is, as I indicated, torn from an existing project and strung back together in a way that (despite not being tested) is intended to work. It probably doesn’t at this juncture 🙂
Let me know how you went about it and what’s happening, and I’ll try to help you get it working. It seems (today) to be the killer method for curbing the spam 😉
Cheers,
Mattt.
@mattt55
Hi, I used your 3rd method registration honeypot to create a small plugin. I don’t really know how to test its effectiveness but here is a link for anyone that is adventurous and would like to give feedback to that effect:
https://github.com/bphelp/bp-spam-killer
Credit goes to @mattt55 for the code and idea.
I could not get the 4th method using jQuery to work. It always sends every user to the spam-prevention page. If you can give more detail as to how to get this working I would like to use both methods in one plugin for better spam registration prevention. Thanks!
@mattt55
Good info, thank you for sharing!
those seem like some great tips especially the last two thanks for sharing!
you should be fine, there are a few differences in the way things work, namely network user registration as opposed to single site registration (users are not automatically added to the root site), making sure your plugins are multisite ready/compatible. All in all you should not have any difficulty unless your mods are things that are relating to network functions (not very likely i don’t think). Do be prepared for the spammers and sploggers to step up their game i implemented wangguard at the same time i switched our site from single to multi.
Hey all,
Just thought I’d share a few anti-spam techniques with y’all – including one or two that I haven’t (despite a whole bunch o’ searchin’) found elsewhere…
http://mattts.net/development-stuff/web-development-stuff/wordpress/buddypress/anti-spam-techniques/
Have an appropriate amount of fun 🙂
Cheers,
Mattt.
@hnla
Well said Hugo! It also seems to me that if it was checked by default it would make it even easier for spam bots to compromise a site.
I’ve had a bunch of trolls “vist” my site, and I kick them out, use various plug-ins etc to try stop them from registering in the first place, but I’m curious WHY they come to my site. Please take these observations seriously.
I have yet to see any troll join a group or forum on my site. I know they’re a troll by scanning my members list and they typically they have a message like below or make reference to a web site.
pożyczki bez bik O ile pisarza pelnomocnictwa i samoregulacji wyznaczony do-gooders Kawa na lawe zakladam, ze naleznosci pozyczki sa klamliwego, sa szanse, ze powinno sie spojrzec na badanie opcjonalnych wyborow sponsorowania a pozyczki gwoli dowolnego, kto od wiekszosci uzytkownikow z panszczyznie pozyczki
If I click view to see more, I get a 404 page error.
So my question is WHAT does a troll/spammer gain? Nobody is going to visit a site and just scroll down a member’s list then run out a get a payday loan or whatever. At least I wouldn’t. They don’t post their crap in any group or forum, so WHY do they do this and the bigger question is how do I stop these idiots from cluttering up my site with their crap?
Hi bp-help,
Thanks so much for replying! My default setting was contributor (roles – add/edit posts, participate in forums, and BP activity). Because of spams I changed it to Subscriber (Only BP activity, no adding posts). The profile fields I am talking about are in the base/primary field only. Even the base fields are not showing up – even name and email! Nothing, just blank. I had to add my own sign-up form using a shortcode to that page to at least show the name and email fields, and that is not working either.
Many Thanks
Sonia
Hi,
I recently updated Buddypress to 1.7.1 and users are having sign-up problems.
1. because of lots of spam registrations, before upgrading to 1.7.1 i had set new user as Subscriber from General Settings.
2. After upgrading Buddypress to 1.7.1 the “My Profile” Fields are not showing on the Sign-Up page.
3. So, I changed new user registration to Contributer in the settings.
4. After doing this also, the sign-up page is blank. I tried to change to a new page, that also was blank.
5. I have put a sign-up form provided by my theme, but no email and password is being sent to a new user.
Please help and Thanks in Advance!
Sonia
In previous versions of BP I could sort users by the date they joined, in the dashboard. I found this useful for seeing the most recent members and weeding out spammers.
In 1.7.1 I can’t see how to do this. In the dashboard/users panel I can only see column headers: Username | Name | Email | Site Role | Posts | Forum Role
Is there a(n easy) way to customize what I can see here, so that I can see “date joined” or something like that?
Thanks,
Julie
You may have already checked but have you looked in your spam folder? Could be in there.
If someone makes a long update in the activity stream of a group then the read more link appears at on the update but when it is clicked there is a page not found error. To work around this my people are posting in the group forum but that is not really what I want I would rather have everything on the group activity page. The forum posts cannot be edited even by admin, when I try to edit them I get “Oh bother! No topics were found here!” I have tried maxing out the time that edits are allowed in the forum settings but that did not work either.
What would be ideal would be if I could just get the ability for the long posts to be accessable from the group activity stream. I hate forums anyway and would rather get rid of them.
I am desperate for some help with this as I have just got some serious traffic going to this site and I would like these guys to hang around.
here is my site http://
I have buddypress 1.7.1 running on wordpress 3.5.1 I am using buddycolumns theme but I have tried the default theme which does not rectify the problem.
Plugins that are currently installed (not all active)
bbPress
BP-Registration-Options
BpDev Recently Updated Blogs Widget
BP Export Users
BP Gallery
BP Group Management
BuddyPress
BuddyPress Activity Comment Notifier
BuddyPress Activity Plus
BuddyPress Activity Stream Bump to Top
BuddyPress Edit Activity Stream
BuddyPress Facebook Connect Plus
BuddyPress Gifts
BuddyPress Like
BuddyPress Links
BuddyPress Privacy Component (BP Privacy, BP_Authz, or BPAz)
Buddypress Sitewide activity widget
BuddyPress Template Pack
Codepress Admin Columns
CONTENT BLENDER
CubePoints
CubePoints Buddypress Integration
Easy Google Analytics for WordPress
Email Login
Facebook Like User Activity Stream For BuddyPress
jQuery Vertical Accordion Menu
Ping Kaching
PrettyGallery
SI CAPTCHA Anti-Spam
WangGuard
TIA
Alice.
Thanks @bphelp.
Closing this thread and any further that are re-opened @placementmantra
@placementmantra You have already been asked by @hnla to stop opening old threads. Not to be rude but isn’t it ironic that your asking for help with spam yet your kinda being spammy yourself. Anyway try this plugin, it is in beta but it may work for you:
http://geek.ryanhellyer.net/products/spam-destroyer/
Download the beta version that has support for BP and bbPress.
I am daily getting very much spams on http://placementmantra.net/
no idea how.even tried plugin no use
I am daily getting very much spams on http://placementmantra.net/
no idea how.even tried plugin no use
@placementmantra Please stop posting this repeated post immediately. You have now posted approx twelve times to old ‘Spam’ threads in as many minutes virtually. Open A new post or search and ‘Read’ some for methods of dealing with spam issues.
Now closing this old thread as a read only.