palpalani/laravel-dns-deny-list-check

checks if the given IP address or hostname is blacklisted on the configured dnsbl servers

0.7.0 2024-04-22 17:45 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Deny list (blacklist) checker will test a mail server IP address against over 50 DNS based email blacklists. (Commonly called Realtime blacklist, DNSBL or RBL).
If your mail server has been blacklisted, some email you send may not be delivered.
Email blacklists are a common way of reducing spam.

Installation

You can install the package via composer:

composer require palpalani/laravel-dns-deny-list-check

You can publish the config file with:

php artisan vendor:publish --provider="palPalani\DnsDenyListCheck\DnsDenyListCheckServiceProvider" --tag="laravel-dns-deny-list-check-config"

This is the contents of the published config file:

return [

];

Usage

$check = new palPalani\DnsDenyListCheck\DnsDenyListCheck();
echo $check->check('127.0.0.1');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Credits

License

The MIT License (MIT). Please see License File for more information.