Django plugin that rickrolls bots and scanners by redirecting common malicious URLs
Project description
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
Add django_bot_rickroll to INSTALLED_APPS and then to urlpatterns:
from django.urls import path, include
urlpatterns = [
# Your app URLs first ...
path("", include("django_bot_rickroll.urls")),
]
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
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_bot_rickroll-0.1.0.tar.gz.
File metadata
- Download URL: django_bot_rickroll-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2482feeca79eb1dd65ccf5dca57b6f8bf62a26a536e010f5fdd7e663606eb87
|
|
| MD5 |
4b26eb161eba32107d232d8f5657d31a
|
|
| BLAKE2b-256 |
c551137cbe1a6567ad8323f61aece63338bc06560def7f76ae818ffbd055a522
|
Provenance
The following attestation bundles were made for django_bot_rickroll-0.1.0.tar.gz:
Publisher:
release.yml on vEnhance/django-bot-rickroll
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_bot_rickroll-0.1.0.tar.gz -
Subject digest:
d2482feeca79eb1dd65ccf5dca57b6f8bf62a26a536e010f5fdd7e663606eb87 - Sigstore transparency entry: 735303988
- Sigstore integration time:
-
Permalink:
vEnhance/django-bot-rickroll@a14b7fa843c54569a36555571227b09bd9aa047c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vEnhance
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a14b7fa843c54569a36555571227b09bd9aa047c -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_bot_rickroll-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_bot_rickroll-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73011156b1264b1b733448844d89130124e64352e0f01398a2105bc387ebda82
|
|
| MD5 |
2e92434b4c28e8d3b2fff70b6a3e70a0
|
|
| BLAKE2b-256 |
5e7cf13c13f64d0772bceeb8a38b0cde5043a543f561f31b7cfe5a04ee405019
|
Provenance
The following attestation bundles were made for django_bot_rickroll-0.1.0-py3-none-any.whl:
Publisher:
release.yml on vEnhance/django-bot-rickroll
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_bot_rickroll-0.1.0-py3-none-any.whl -
Subject digest:
73011156b1264b1b733448844d89130124e64352e0f01398a2105bc387ebda82 - Sigstore transparency entry: 735303997
- Sigstore integration time:
-
Permalink:
vEnhance/django-bot-rickroll@a14b7fa843c54569a36555571227b09bd9aa047c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vEnhance
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a14b7fa843c54569a36555571227b09bd9aa047c -
Trigger Event:
release
-
Statement type: