1

im getting more and more spam account registrations. what is the simplest way to handle this if one does not need browser based registration? people register the REST/services way via an app.

can this be achieved without additional modules? e.g. server redirect?

1 Answer 1

0

If you don't need user self-registration then just disable that functionality.

To do this go to :
/admin/config/people/accounts (Admin > Configuration > People > Account Settings)

And for the Who can register accounts? setting choose Administrators only.

If later on you decide that you need that functionality, you can enable it back and then just add a captcha to your user registration form, or integrate something like honeypot or logintoboggan.

7
  • thanks for the suggestion. people can register themselves - they download the app and register through the app.
    – user24957
    Jun 2, 2015 at 8:35
  • So does your app rely on the drupal registration mechanism ? Or can you just disable the functionality in drupal an let your app handle things ?
    – rtome
    Jun 2, 2015 at 8:47
  • yes, im relying on the drupal registration. im using this masterpiece github.com/jbeuckm/drupal-client
    – user24957
    Jun 2, 2015 at 8:49
  • The REST mechanism allows for handing extra fields in the user registration form. (see thirdandgrove.com/… at the end of article). See if you can add a captcha. Alternatively, a a rough solution a simple hidden field with an arbitrary value could help you differenciate drupal-client registrations and web interface registrations.
    – rtome
    Jun 2, 2015 at 9:05
  • thx for the suggestions - i can already differentiate with the help of a custom field. in combination with rules its kinda working and im blocking spam accounts. however, they are set up in the first place. would a server-side redirect from the login url somehow work or would it prevent rest registration as well?
    – user24957
    Jun 2, 2015 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.