定制 beebmx/kirby-rickroll 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

beebmx/kirby-rickroll

Composer 安装命令:

composer require beebmx/kirby-rickroll

包简介

Kirby Rickroll

README 文档

README

Kirby Rickroll redirects some visitors than try to "break" into your site.

Installation

Composer

composer require beebmx/kirby-rickroll

Usage

After you install the package, your site will going to redirect that visitors to Rick.

The urls "protected" out of the box are:

[
    "wp-login.php",
    "wp-admin",
    "user/login",
    "admin",
    "composer.lock",
    "yarn.lock",
    ".env"
]

General options

This package comes with some things to configure.

Option Value Description
beebmx.kirby-rickroll.urls (array) An array of URLs to "protect"
beebmx.kirby-rickroll.redirect (string) An url to redirect when a protected one is hit

Example

Here is an example if you want to change the default settings.

In your config.php file just:

return [
    'beebmx.kirby-rickroll.urls' => [
        'admin',
        'my-secure-url',
        'this-is-my-admin-url'
    ],
    'beebmx.kirby-rickroll.redirect' => 'https://youtu.be/RfiQYRn7fBg?t=17',
];

Hook

If you want to do something when someone hit your URLs, we have you cover.

In your config.php file just add the hook:

return [
    'hooks' => [
        'beebmx.kirby-rickroll.hit' => function ($url) {
            //Do something
        }
    ]
];

Inspiration

This package is inspire by the tweet of Liam Hammett.

License

Copyright © 2019-2020 Fernando Gutierrez @beebmx and contributors

Licensed under the MIT license, see LICENSE.md for details.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固