Detect and Block if new account registrations are using disposable email services.
The Disposable email blocker provide :
- 🛡️ Protects all HTML forms.
- 🛡️ Detects invalid email addresses and domains
- 🛡️ Blocks disposable email services
- 🛡️ Blocks webmail email services
- 🛡️ Custom error messages
- 🛡️ Disposable data daily updates to stay ahead of fake users
$ npm install disposable-email-blocker-vue-2 --save
# or
$ yarn add disposable-email-blocker-vue-2
import Blocker from 'disposable-email-blocker-vue-2';
Vue.use(Blocker);
The Blocker parameter.
Simple options
const defaults = {
apiUrl: 'string',
data: 'TombaStatusResponse[]',
disposable: {
message: 'string',
},
webmail: {
message: 'string',
block: false,
},
emailError: {
className: 'string',
style: `string`,
},
};
Vue.use(Blocker, defaults);
apiUrl
API URL.data
Data structure.disposable.message
disposable error message.webmail.message
webmail error message.webmail.block
block webmail emails.emailError.className
HTML tag class .emailError.style
css style.
To disposable message:
const defaults = {
disposable: {
message:
'Abuses, strongly encourage you to stop using disposable email',
},
};
Vue.use(Blocker, defaults);
To webmail message:
const defaults = {
webmail: {
message:
'Warning, You can create an account with this email address, but we strongly encourage you to use a professional email address',
},
};
Vue.use(Blocker, defaults);
const defaults = {
apiUrl: 'string',
};
Vue.use(Blocker, defaults);
This will stop API call
const defaults = {
data: [
{
domain: 'coronafleet.com',
webmail: true,
disposable: false,
},
],
};
Vue.use(Blocker, defaults);
const defaults = {
webmail: {
block: true,
},
};
Vue.use(Blocker, defaults);
To access the API functions, call the $blocker anywhere in your components.
this.$blocker;
use the on()
API method.
Available Event name done
the Content is revealed on onInput
his.$blocker.on('done', (e) => {
// place your code here
});
Platform | URL | Status |
---|---|---|
wordpress | wordpress-disposable-email-blocker | ✅ |
MyBB | mybb-disposable-email-blocker | ✅ |
LiteCart | litecart-disposable-email-blocker | ✅ |
Cloudflare | cloudflare-disposable-email-blocker | ✅ |
Vue 2 | disposable-email-blocker-vue-2 | ✅ |
Joomla | 🚧 | |
Drupal | 🚧 |