Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

otm-detector

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otm-detector - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

122

blocklist.js
export const OTM_HOSTS = new Set([
"recv6.erinn.biz",
"recv7.erinn.biz",
"recv8.erinn.biz",
"recv1.erinn.biz",
"recv100.erinn.biz",
"recv101.erinn.biz",
"recv2.erinn.biz",
"recv3.erinn.biz",
"recv4.erinn.biz",
"email-fake.com",
"emailfake.com",
"emailfake.com",
"generator.email",
"in.mail.tm",
"mail.mailinator.com",
"mail.onetimemail.org",
"mail2.mailinator.com",
"mailinator.com",
"mx.mail-data.net",
"mx1-hosting.jellyfish.systems",
"mx1.emaildbox.pro",
"mx1.forwardemail.net",
"mx1.simplelogin.co",
"mx2-hosting.jellyfish.systems",
"mx2.den.yt",
"mx2.emaildbox.pro",
"mx2.forwardemail.net",
"mx2.simplelogin.co",
"mx3-hosting.jellyfish.systems",
"mx3.emaildbox.pro",
"mx4.emaildbox.pro",
"mx5.emaildbox.pro",
"prd-smtp.10minutemail.com",
"route1.mx.cloudflare.net",
"route2.mx.cloudflare.net",
"route3.mx.cloudflare.net",
"tempm.com",
])
"recv6.erinn.biz",
"recv7.erinn.biz",
"recv8.erinn.biz",
"recv1.erinn.biz",
"recv100.erinn.biz",
"recv101.erinn.biz",
"recv2.erinn.biz",
"recv3.erinn.biz",
"recv4.erinn.biz",
"email-fake.com",
"emailfake.com",
"emailfake.com",
"generator.email",
"in.mail.tm",
"mail.wabblywabble.com",
"mail.wallywatts.com",
"mail.mailinator.com",
"mail.onetimemail.org",
"mail2.mailinator.com",
"mailinator.com",
"mx.mail-data.net",
"mx1-hosting.jellyfish.systems",
"mx1.emaildbox.pro",
"mx1.forwardemail.net",
"mx1.simplelogin.co",
"mx2-hosting.jellyfish.systems",
"mx2.den.yt",
"mx2.emaildbox.pro",
"mx2.forwardemail.net",
"mx2.simplelogin.co",
"mx3-hosting.jellyfish.systems",
"mx3.emaildbox.pro",
"mx4.emaildbox.pro",
"mx5.emaildbox.pro",
"prd-smtp.10minutemail.com",
"route1.mx.cloudflare.net",
"route2.mx.cloudflare.net",
"route3.mx.cloudflare.net",
"tempm.com",
]);
export const OTM_IPS = new Set([
"136.243.103.68",
"137.184.243.159",
"146.190.197.86",
"15.204.213.223",
"15.235.72.244",
"15.235.72.245",
"157.230.67.25",
"164.90.254.47",
"167.114.206.221",
"167.172.1.68",
"173.225.105.34",
"194.31.59.229",
"23.239.2.211",
"24.199.67.157",
"51.222.102.161",
"54.39.17.59",
"54.39.193.199",
"66.70.233.243", // openmail.pro
"92.255.84.131",
"96.126.99.62",
])
"116.202.9.167",
"136.243.103.68",
"137.184.243.159",
"146.190.197.86",
"15.204.213.223",
"15.235.72.244",
"15.235.72.245",
"157.230.67.25",
"164.90.254.47",
"167.114.206.221",
"167.172.1.68",
"173.225.105.34",
"194.31.59.229",
"23.239.2.211",
"24.199.67.157",
"46.101.111.206",
"51.222.102.161",
"54.39.17.59",
"54.39.193.199",
"66.70.233.243", // openmail.pro
"92.255.84.131",
"96.126.99.62",
]);
{
"name": "otm-detector",
"version": "1.2.2",
"description": "Detect one-time mail services, the new way",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "node --test",
"build": "rollup index.js --file index.cjs --format cjs --generatedCode=es2015 --compact --banner \"// DO NOT EDIT DIRECTLY\" --sourcemap"
},
"type": "module",
"exports": {
"import": "./index.js",
"require": "./index.cjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Short-io/otm-detector.git"
},
"keywords": [
"one-time-mail"
],
"author": "Andrii Kostenko <andrii@short.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Short-io/otm-detector/issues"
},
"homepage": "https://github.com/Short-io/otm-detector#readme",
"devDependencies": {
"rollup": "^4.25.0"
},
"packageManager": "npm@10.7.0"
"name": "otm-detector",
"version": "1.2.3",
"description": "Detect one-time mail services, the new way",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "node --test",
"build": "rollup index.js --file index.cjs --format cjs --generatedCode=es2015 --compact --banner \"// DO NOT EDIT DIRECTLY\" --sourcemap"
},
"type": "module",
"exports": {
"import": "./index.js",
"require": "./index.cjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Short-io/otm-detector.git"
},
"keywords": [
"one-time-mail"
],
"author": "Andrii Kostenko <andrii@short.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Short-io/otm-detector/issues"
},
"homepage": "https://github.com/Short-io/otm-detector#readme",
"devDependencies": {
"rollup": "^4.25.0"
},
"packageManager": "npm@10.7.0"
}

@@ -1,16 +0,17 @@

## Module: OTM Detector
# One Time Mail Detector
The OTM Detector module is a lightweight module that allows you to detect one-time mail services by checking the MX (Mail Exchange) records of a given hostname.
Most of similar modules have block list of one-time mail services, but this module uses a different approach to detect one-time mail services. It checks the MX records of the hostname to determine if it belongs to a one-time mail service. Usually such services purchase a lot of domains and use them as one-time mail services. This module is able to detect such services.
![NPM Version](https://img.shields.io/npm/v/otm-detector)
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
### Installation
The OTM Detector module is a lightweight module that allows you to detect one-time mail services by checking the MX (Mail Exchange) records of a given hostname. Most of similar modules have block list of one-time mail services, but this module uses a different approach to detect one-time mail services. It checks the MX records of the hostname to determine if it belongs to a one-time mail service. Usually such services purchase a lot of domains and use them as one-time mail services. This module is able to detect such services.
## Installation
To install the OTM Detector module, use the following command:
Install otm-detector with npm
```bash
npm install otm-detector
npm install otm-detector
```
## Usage
### Usage
To use the OTM Detector module in your project, require it and call the `isOneTimeMail` function, passing the hostname as a parameter. The function will return `true` if the hostname belongs to a one-time mail service, and `false` otherwise.

@@ -38,16 +39,44 @@

### Related links
## FAQ
We recommend using this module with existing burner email providers (for example, https://github.com/wesbos/burner-email-providers) to provide better results
#### What is the purpose of this module?
### Contributing
Many services offer a limited free version of their product. While 99.9% of users create only one account, some malicious actors create thousands. The purpose of this module is to prevent such abuse.
#### What are the criteria for adding a service to this list?
We add a service to the list if it matches one of the following criteria:
- Provides one-off temporary emails without requiring registration.
- Allows the creation of a large number of aliases.
- Is heavily used to circumvent email validation limits.
#### What is out of scope for this module?
We do not add services to this list for the following reasons:
- Email proxy services.
- Secure email services.
- Sending SPAM.
#### How can I remove my service from the list?
Please submit a pull request (PR) with an explanation.
## Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on the [GitHub repository](https://github.com/short-io/otm-detector).
### Development
## Related
We recommend using this module with existing burner email providers (for example, https://github.com/wesbos/burner-email-providers) to provide better results
## License
[MIT](https://choosealicense.com/licenses/mit/)
## Development
After editing `index.js`, run `npx rollup index.js --file index.cjs --format cjs` to generate a CommonJS module.
Do not edit `index.cjs` directly.
### License
This module is licensed under the [MIT License](https://opensource.org/licenses/MIT).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc