PHPackages                             lukasmu/laravel-rickroll - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lukasmu/laravel-rickroll

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lukasmu/laravel-rickroll
========================

Rickroll people trying to break into your Laravel site

v2.0.1(1y ago)0452MITPHPPHP ^8.2

Since Jan 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lukasmu/laravel-rickroll)[ Packagist](https://packagist.org/packages/lukasmu/laravel-rickroll)[ Docs](https://github.com/lukasmu/laravel-rickroll)[ GitHub Sponsors](https://github.com/lukasmu)[ RSS](/packages/lukasmu-laravel-rickroll/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (11)Versions (9)Used By (0)

Rickroll people trying to break into your Laravel site
======================================================

[](#rickroll-people-trying-to-break-into-your-laravel-site)

[![Latest Version on Packagist](https://camo.githubusercontent.com/542044d47fb75e3df7d826d39a5ec99ec8b6ba22e74471c9dea7b6f2b17eadf6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756b61736d752f6c61726176656c2d7269636b726f6c6c2e737667)](https://packagist.org/packages/lukasmu/laravel-rickroll)[![GitHub Run Tests Action Status](https://camo.githubusercontent.com/92cf15874c0c29942119c879d8a61ab9a98e84f912c86b6720caf6d1caf6baa4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756b61736d752f6c61726176656c2d7269636b726f6c6c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/lukasmu/laravel-rickroll/actions/workflows/run-tests.yml?query=branch%3Amain++)[![GitHub Format Code Action Status](https://camo.githubusercontent.com/8ace7d5cf51924de1ceb20f7e328691f5110485ce6aa64640ba1e87f80a488a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756b61736d752f6c61726176656c2d7269636b726f6c6c2f666f726d61742d636f64652e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65)](https://github.com/lukasmu/laravel-rickroll/actions/workflows/format-code.yml?query=branch%3Amain++)[![Coverage Status](https://camo.githubusercontent.com/49728b42eb2257b4b9edcb00d035df0ababd0528a2b96617ad957142653f18c2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c756b61736d752f6c61726176656c2d7269636b726f6c6c2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/lukasmu/laravel-rickroll?branch=main)[![Total Downloads](https://camo.githubusercontent.com/8088663c4aef02f901b4d6fd766ffc7bec1497eec5a978e8d6c2305560582c76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756b61736d752f6c61726176656c2d7269636b726f6c6c2e737667)](https://packagist.org/packages/lukasmu/laravel-rickroll)

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](https://twitter.com/LiamHammett/status/1260984553570570240/) (7k+ likes) that inspired this package!

[![Liam Hammett's inspirational tweet](tweet.png)](tweet.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lukasmu/laravel-rickroll
```

Usage
-----

[](#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
-------------

[](#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.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Contributions are **welcome** and will be fully **credited**. Feedback is very much appreciated as well.

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Testing
-------

[](#testing)

The package includes tests which can be run by calling:

```
composer test
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Lukas Müller](https://github.com/lukasmu)
- [All Contributors](../../contributors)

This package has been derived from [Felix Dorn's](https://github.com/felixdorn/laravel-rickroll) and [Mitchell Johnson's](https://github.com/mitchazj/laravel-rickroll) packages but has been greatly simplified and properly versioned.

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance44

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~213 days

Total

8

Last Release

437d ago

Major Versions

v1.0.5 → v2.0.02025-03-01

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0073e8983854f6649e10c966d574195f7c1ccbd2a1744866522921546b9ee5d?d=identicon)[lukasmu](/maintainers/lukasmu)

---

Top Contributors

[![lukasmu](https://avatars.githubusercontent.com/u/28652053?v=4)](https://github.com/lukasmu "lukasmu (30 commits)")

---

Tags

laravellukasmurickrollrickastley

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lukasmu-laravel-rickroll/health.svg)

```
[![Health](https://phpackages.com/badges/lukasmu-laravel-rickroll/health.svg)](https://phpackages.com/packages/lukasmu-laravel-rickroll)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
