Verifyr

Validate User Emails for WordPress Blog Registrations

As a WordPress blog owner, user registrations and comments are key to community. Ensure every new user or commenter uses a valid email, combating spam and enhancing your site's credibility.

The problem

Running a WordPress blog with open registrations or comment sections often attracts a significant amount of spam. Bots and malicious users create fake accounts or leave comments with invalid email addresses, intending to post spam links or disrupt discussions. This not only clutters your backend with junk data but also degrades the user experience for legitimate visitors, making your blog appear less professional and trustworthy. Manually moderating and deleting these spam entries is a constant, time-consuming battle.

The proliferation of fake user accounts or comments linked to invalid emails can negatively impact your blog's SEO and overall reputation. Search engines prioritize websites with genuine engagement, and a high volume of spam can signal low quality. Furthermore, if you rely on email for user notifications or community building, sending to invalid addresses results in high bounce rates, damaging your sender score and potentially leading to your legitimate emails being marked as spam.

How Verifyr solves it

1
Validate email addresses for new WordPress user registrations and comments, blocking bots and spammers.
2
Maintain a clean user database, enhancing your blog's credibility and improving community engagement.
3
Reduce manual moderation time, freeing you to focus on creating valuable content for your audience.

Concrete example


<?php
add_filter('registration_errors', 'verifyr_validate_registration_email', 10, 3);
function verifyr_validate_registration_email($errors, $sanitized_user_login, $user_email) {
    $api_key = 'YOUR_VERIFYR_API_KEY';
    $response = wp_remote_post('https://api.verifyrhq.com/validate', [
        'headers' => ['Content-Type' => 'application/json', 'X-API-KEY' => $api_key],
        'body'    => json_encode(['email' => $user_email])
    ]);
    if (!is_wp_error($response) && $response['response']['code'] === 200) {
        $data = json_decode(wp_remote_retrieve_body($response), true);
        if ($data['status'] !== 'valid' || $data['disposable']) {
            $errors->add('email_error', __('<strong>ERROR</strong>: Please enter a valid, non-disposable email address.'));
        }
    }
    return $errors;
}
?>

Ready to try Verifyr?

Real email validation. No bounce-back surprises.

Frequently asked questions

Can Verifyr integrate directly with WordPress for user registrations and comments?
Yes, you can integrate Verifyr into your WordPress site using custom PHP code (e.g., in your theme's functions.php or a custom plugin) by hooking into WordPress's registration and comment submission filters.
Will email validation prevent spam comments on my WordPress blog?
By validating the email address associated with a comment or registration, Verifyr helps filter out many bot-generated spam entries that often use fake or disposable emails.
What happens if a legitimate user makes a typo in their email during registration?
Verifyr identifies mistyped emails as invalid, prompting the user to correct their input. This ensures you capture accurate contact details for all your genuine community members.

Related use cases