Stop disposable emails
dead in their tracks.
A universal, lightweight JavaScript SDK that automatically detects and blocks temporary email addresses on any website, CMS, or form builder.
Live Demo
Try entering a disposable email like test@10minutemail.com or user@mailinator.com. The SDK will automatically block it.
How it works
Automatically detects any input with
type="email"or name containing "email".Validates against a constantly updated list of thousands of disposable domains.
Prevents form submission and highlights the invalid field instantly.
Installation
Add a single script tag to your website and you're protected. It works with WordPress, Shopify, Webflow, React, and custom HTML.
<!-- Add this just before the closing </body> tag -->
<script src="https://your-domain.com/temp-email-validator.js"></script>Configuration (Optional)
You can customize the behavior by defining a global configuration object before loading the script.
<script>
window.TempEmailBlocker = {
message: "Please use a real email address.",
highlightColor: "#fee2e2",
textColor: "#ef4444",
whitelist: ["mycompany.com"],
blacklist: ["spammy-domain.com"],
useApi: false // Set to true to use the API endpoint
};
</script>WordPress Integration
To add this to WordPress, you can use a plugin like "Insert Headers and Footers" or add this to your theme's functions.php:
add_action('wp_footer', function() {
echo '<script src="https://your-domain.com/anti-temp-email.js"></script>';
});Backend API
Need to validate emails on your server? Use our fast, CORS-enabled REST API.
/api/check-email?email=test@mailinator.comRequest Example
fetch('https://your-domain.com/api/check-email?email=test@mailinator.com')
.then(res => res.json())
.then(data => console.log(data));Response Example
{
"valid": false,
"reason": "Disposable email domain detected",
"domain": "mailinator.com"
}