Hi,
Due to bots creating automatic profiles I wanted to ask you if you could provide any infos about how bots are able to automate BP registrations? Is there a php file that they can access for running a java script query (same as for wp-login.php) or is it only possible to register through the standard BP register page?
Thanks for your information.
Regards,
DanielHi Daniel
Most of the bots use curl to access and submit the data to the registration form(your BuddyPress signup form) handler.The most effective way against automated bots are to test for javascript enabled state. It will block most of the bots. It does not stop the human spam though.
Regards
BrajeshHi Daniel,
You should block non javascript requests(requests from devices which do not support javascript).Regards
BrajeshHi Brajesh,
OK thanks for the info. I actually have set a Cloudflare page rule and set to “under attack” mode for register page but these bots still find a way to undergo the protection.
Will need to think about how I’m gonna do that.
Thanks anyways.
Regards
DanielHi Daniel,
All the best with stopping spam 🙂Regards
BrajeshHi,
I have found some code to block CURL from creating automated registrations.
if(stripos($_SERVER['HTTP_USER_AGENT'],'curl') !== false) { http_response_code(403); //FORBIDDEN exit; }
but it is not mentioned where I should place the code. Do you think if I place it in bp-custom.php it will be working?
Thanks for your help.
Regards
Daniel
The topic ‘How to block Bots from autmatic registering’ is closed to new replies.