Rickrolls people trying to break your site.
felixdorn/laravel-rickroll is a Laravel package for rickrolls people trying to break your site..
It currently has 86 GitHub stars and 7.258 downloads on Packagist (latest version 1.1.2).
Install it with composer require felixdorn/laravel-rickroll.
Discover more Laravel packages by felixdorn
or browse all Laravel packages to compare alternatives.
Last updated
Rickrolls people trying to break your site. This package is inspired by Liam Hammett's tweet.
You can install the package via composer, if you don't have composer installed, you can download it here:
composer require felixdorn/laravel-rickroll
Or by adding a requirement in your composer.json :
{
"require": {
"felixdorn/laravel-rickroll": "dev-master"
}
}
Do you know any well-known url that "hackers" use to gather information/secrets ? Add these here, thanks!
On your routes/web.php just add this single line, and we'll handle the rest for you!
use Felix\Rickroll\Facades\RickRoll;
RickRoll::routes();
use Felix\Rickroll\Facades\RickRoll;
RickRoll::routes()->redirectsTo('https://mycustom.url');
use Felix\Rickroll\Facades\RickRoll;
RickRoll::routes()->clear();
use Felix\Rickroll\Facades\RickRoll;
RickRoll::routes()->push('/rickroll')
->push('/rickroll/{id}', [
'id' => '[0-9]+'
]);
There is a rickroll function available if you want to rickroll someone in one of your controllers.
rickroll('https://my-custom.url');
You don't need to return anything, it works just like an abort.
We're dispatching an event with the current request when someone is rick-rolled.
Just listen for Felix\RickRoll\Events\RickRolled in your EventServiceProvider .
composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.