# How to prevent malicious registration

**URL:** <https://community.auth0.com/t/how-to-prevent-malicious-registration/156427>\
**Category:** Get Help\
**Tags:** email-verification, user-management\
**Created:** [December 2, 2024, 6:11am UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427 "2024-12-02T06:11:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amooW6ojoh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amoow6ojoh/32/60177_2.png) [@amooW6ojoh](https://community.auth0.com/u/amooW6ojoh)\
**Post date:** [December 2, 2024, 6:11am UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427/1 "2024-12-02T06:11:12Z")

</div>

My app has a free plan, it gives credits to new users. I’m worried about malicious registration that might deplete my free credits.

Since there’re plenty of free fake email address provider, how can I harden the registration process to filter potentially unwanted users?

---

<div class="post-metadata">

**Author:** ![Fario\_Consulting](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fario_consulting/32/60590_2.png) [@Fario\_Consulting](https://community.auth0.com/u/Fario_Consulting)\
**Post date:** [December 2, 2024, 5:06pm UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427/4 "2024-12-02T17:06:46Z")

</div>

Hi,  
I’d recommend adding a Pre-User-Registration Hook where you can apply your own logic.  
Also, definitely utilize bot detection with ReCaptcha support…it’s included in Auth0 and will give your app an extra layer of security against automated attacks

---

<div class="post-metadata">

**Author:** ![amooW6ojoh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amoow6ojoh/32/60177_2.png) [@amooW6ojoh](https://community.auth0.com/u/amooW6ojoh)\
**Post date:** [December 6, 2024, 11:55pm UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427/5 "2024-12-06T23:55:18Z")

</div>

Any documents on that?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 17, 2024, 11:41pm UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427/10 "2024-12-17T23:41:45Z")

</div>

Hi @amooW6ojoh,

You could use [Bot Detection](https://auth0.com/docs/secure/attack-protection/bot-detection) to enforce a Captcha to prevent malicious registrations from happening.

Secondly, you could enforce a requirement for email verification to login to restrict users from logging in until they have verified their email address. See the [Best Practice of Enforcing Email Verification](https://community.auth0.com/t/best-practice-of-enforcing-email-verification/115088) knowledge article.

And if you need to perform some validation checks prior to registration, you must use a [Pre-user Registration Trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/pre-user-registration-trigger) instead of a Hook because Hooks are no longer supported.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 31, 2024, 11:42pm UTC](https://community.auth0.com/t/how-to-prevent-malicious-registration/156427/11 "2024-12-31T23:42:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
