承接 justijndepover/laravel-spam-keyword-validation 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

justijndepover/laravel-spam-keyword-validation

Composer 安装命令:

composer require justijndepover/laravel-spam-keyword-validation

包简介

Laravel validation rule which checks for frequently used spam words

README 文档

README

Latest Version on Packagist Software License Total Downloads

This package adds a validation rule to Laravel to block requests based on frequently used SPAM words like bitcoin, cryptocurrency, etc... For a full list, check out the config file

Installation

You can install the package with composer

composer require justijndepover/laravel-spam-keyword-validation

After installation you can optionally publish your configuration file

php artisan vendor:publish --tag="laravel-spam-keyword-validation-config"

configuration

This is the config file

<?php

return [
    /**
     * The list of keywords which cannot appear in the request value
     */
    "keywords" => [
        "http://",
        "https://",
        "www",
        "ftp://",
        "mailto:",
        "smb://",
        "afp://",
        "file://",
        "gopher://",
        "news://",
        "ssl://",
        "sslv2://",
        "sslv3://",
        "tls://",
        "tcp://",
        "udp://",
        "url=",
        "href=",
        "dating",
        "sex",
        "porn",
        "fuck",
        "free",
        "win",
        "buy",
        "captcha",
        "spam",
        "hello. and bye.",
        "mail.ru",
        "reading this message",
        "reading my message",
        "reading through my message",
        "are whitelisted",
        "great website",
        "late client",
        "ciao a tutti",
        "viagra",
        "cheap",
        "casino",
        "advertising",
        "keyword",
        "promotion",
        "porntubered",
        "ps: how are you?",
        "beautiful models",
        "privet",
        "beautiful girls",
        "best girls",
        "dosug",
        "trustable",
        "look at the",
        "v7bomdefex",
        "what is it -",
        "email marketing",
        "read your site",
        "crypto",
        "cryptography",
        "cryptocurrency",
        "bitcoin",
        "ethereum",
        "dogecoin",
    ],

];

Usage

Your request can be validated with the blockSpamKeywords validation rule:

$request->validate([
    'message' => ['blockSpamKeywords'],
]);

Security

If you find any security related issues, please open an issue or contact me directly at justijndepover@gmail.com.

Contribution

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License

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

统计信息

  • 总下载量: 86
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固