lukasmu/laravel-rickroll

Rickroll people trying to break into your Laravel site

v1.0.4 2023-04-20 09:52 UTC

This package is auto-updated.

Last update: 2024-04-20 11:59:07 UTC


README

Latest Version on Packagist tests StyleCI Total Downloads Coverage Status

Sometimes you just gotta rickroll people who attempt to mess with your website. This lightweight package adds some redirect routes to your Laravel website in order to redirect these people to Rick Astley's "Never Gonna Give You Up".

Credit to Liam Hammett for his tweet (8k+ likes) that inspired this package!

Installation

You can install the package via composer:

composer require lukasmu/laravel-rickroll

Usage

Just install the package. That's it. By default the following paths will be redirected to "Never Gonna Give You Up":

  • .env
  • .git
  • wp-admin
  • wp-login
  • wp-login.php
  • composer.lock
  • yarn.lock
  • package-lock.json
  • xmlrpc.php
  • typo3
  • phpinfo.php
  • .htaccess

Do you know any well-known paths that people might use to mess with your website? Add them in the config file, and submit a pull request, thanks!

Customization

You can publish the config file with:

php artisan vendor:publish --provider="LukasMu\Rickroll\RickrollServiceProvider" --tag="config"

Feel free to edit the published config file in order to customize the Rickroll behaviour.

Testing

You can run all tests via composer as well:

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hello@lukasmu.com instead of using the issue tracker.

Postcardware

You are free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown. The address is: Lukas Müller, Dirklangendwarsstraat 5, 2611HZ Delft, The Netherlands.

Credits

This package was derived from Felix Dorn's and Mitchell Johnson's packages but has been greatly simplified and properly versioned.

License

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