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 (7k+ likes) that inspired this package!
You can install the package via composer:
composer require lukasmu/laravel-rickroll
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!
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.
Please see CHANGELOG for more information what has changed recently.
Contributions are welcome and will be fully credited. Feedback is very much appreciated as well.
Please see CONTRIBUTING for details.
The package includes tests which can be run by calling:
composer test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
This package has been derived from Felix Dorn's and Mitchell Johnson's packages but has been greatly simplified and properly versioned.
The MIT License (MIT). Please see LICENSE for more information.