django-bot-rickroll
Story
Once upon a time I noticed my server log was filled with 404 errors
for URL's like /wp-admin and so on.
I figured redirecting them to this cool music video
was one way I could get these errors out of my logs.
Also it means if my kids are snooping around they can get a laugh or two.
Installation
uv add django-bot-rickroll
Usage
Just add one line to urlpatterns:
from django.urls import path, include
urlpatterns = [
# Your app URLs first ...
path("", include("bot_rickroll.urls")),
]
You should add this as the last line, so that in the unlikely event one of the URL's in the blocklist is actually supposed to work, then yours take precedence.
You can customize the target URL in your settings.py:
RICKROLL_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
URL's covered
/wp-admin/,/wp-content/,/wp-includes/,/wp-json//wordpress/,/wp//administrator/,/joomla/,/drupal/,/magento/,/cms//phpmyadmin/,/phpMyAdmin/,/pma/,/mysql/,/adminer//cpanel/,/webmail/,/plesk//file-manager/,/filemanager/,/laravel-file-manager/,/elfinder//upload/,/uploads/,/files//vendor/,/public/,/modules/,/node_modules//lib/,/libraries/,/includes/,/inc//.well-known/,/.git/,/.svn/,/.hg//.env,/.htaccess,/.htpasswd/config/,/configuration/,/conf/,/settings//backup/,/backups/,/bak//old/,/temp/,/tmp//cgi-bin/,/cgi/,/bin/,/scripts//php//db/,/database/,/sql/- Any URL ending in
.php - Any URL ending in
.env /blog-verify- Any URL ending in
wlwmanifest.xml
License
MIT
Metadata
Release files for django-bot-rickroll 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_bot_rickroll-0.3.1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_bot_rickroll-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / django_bot_rickroll-0.3.1.tar.gz
| Download URL | django_bot_rickroll-0.3.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13909ce076cbda31babb2718505fdf61d0f366bd743246daaa0d1b2804247d92
|
|
BLAKE2b-256 checksum How to use checksums |
2f2298f95b1b105723bed1dae8cc0801990e2be4952f455a81a499b1b38877f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / django_bot_rickroll-0.3.1-py3-none-any.whl
| Download URL | django_bot_rickroll-0.3.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c733f095c382dc263dede366475103eb315dd5c3f468eb3a061753e7c2220359
|
|
BLAKE2b-256 checksum How to use checksums |
55a088fe6d7a2ab77b0b65f9e2eaecef6382b4f2c788eef0a20ebfb9939b138e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency log