Download the PHP package anto0102/mailguard without Composer
On this page you can find all versions of the php package anto0102/mailguard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mailguard
Flarum MailGuard
MailGuard is a lightweight, ultra-optimized Flarum 2.0 extension to securely guard and validate email domains during user registration. Built entirely without external GUI frameworks to guarantee zero impact on server memory and provide instant, real-time blocking of unwanted users.
Features & Configuration Guide
Alias Anti-Fraud (Plus Strategy)
Gmail and many providers allow users to add a + (e.g., [email protected]) to create "infinite" addresses for the same account.
- Action: Block: Rejects any registration containing a
+alias. - Action: Sanitize: Automatically removes the alias part (e.g.,
[email protected]becomes[email protected]) before saving.
Gmail Dot Strategy (Anti-Clone)
Gmail ignores dots (e.g., [email protected] is the same as [email protected]). This is often used for account cloning.
- Disabled (Standard): Dots are ignored by the filter; Flarum treats them as separate emails.
- Check for Duplicates (Anti-Clone): [Recommended] The user can register with dots (maintaining their login UX), but MailGuard blocks the registration if the root version (without dots) already exists in the database.
- Strict Block: Rejects any email containing dots in the local part for target providers.
- Silent Clean: Automatically removes dots from the email before saving. Note: The user will then need to log in without dots.
DNS/MX Live Validation
Performs a real-time server check to verify if the domain has valid Mail Exchange (MX) records. Blocks fake domains like @nonexistent-provider.web instantly.
Domain Shield (Allow/Deny)
- Allowlist: Only the listed domains can register. Perfect for corporate or invitation-only forums.
- Denylist: All domains allowed except those listed (e.g., disposable email providers).
Installation & CLI
Install via Composer:
Powerful CLI Commands:
License
This project is licensed under the MIT License.
Support & Issues
If you experience any bugs, have questions, or want to suggest new features, please open an Issue directly on this GitHub repository.