Allow Sign Up / Sign In only with Google

Hi, im experiencing attack of spam accounts in my website and i would like to disable sign up with email .

So only way to sing up would be google and facebook.

How to set this off?

Best regards Alex

Hi,

Do you have the Social Login extension? If so, you could use a code snippet to block regular registration and a CSS snippet to hide the standard login form, leaving only the “Login with Google” button visible.

Another tip, you can enable email verification and then periodically delete unactivated user accounts in WordPress > Users to keep things clean.

Also, make sure the spam isn’t coming through the default WordPress form rather than HivePress. Please check that the “Anyone can register” checkbox in Settings > General is unchecked, as spam bots often target that form.

Hope this helps

Yes i have extension.

Could you tell these codes so i can use it. Im getting thousands of new accounts everyday.

Thank you

Best regards Alex

We can provide a snippet for this, however, custom code guidance is part of our premium support.

Please add the license key to the account settings to get the Premium Support badge on your profile. If the support for your purchase has expired, please consider renewing it for assistance Renew Support | HivePress.

Thanks for your understanding.

Instead of following your advice i have installed GOOGLE RECATCPA and allowed it to be in sing in and sign up form.

Step 1: Get Google reCAPTCHA Keys

  1. Go to Google reCAPTCHA Admin Console

  2. Sign in with your Google account

  3. Click Create or + to register a new site

  4. Fill in the details:

    • Label: Your site name

    • reCAPTCHA type: Select reCAPTCHA v2 (v3 is not yet supported)

    • Domains: Add your website domain (e.g., example.com )

  5. Accept the terms and click Submit

  6. You’ll receive:

    • Site Key

    • Secret Key

For detailed instructions, check: How to obtain Google reCAPTCHA keys

Step 2: Add Keys to HivePress

  1. Go to HivePress > Settings > Integrations > reCaptcha

  2. Paste your Site Key and Secret Key

  3. Click Save Changes


Step 3: Enable reCAPTCHA on Registration Form

  1. Still in HivePress > Settings > Integrations > reCaptcha

  2. Check the box for “Register User” form

  3. Click Save Changes

Lets see if this helps !

Best regards Alex

Glad that you’ve found the workaround.

Hope it will help. :herb: