A Django package to obscure Django applications from detection tools like Wappalyzer by encrypting the CSRF token.
Project description
Django Hide
Django Hide is a Django package designed to obscure your application's programming languages and frameworks from detection tools like Wappalyzer. By encrypting the CSRF token tag, this package helps prevent Wappalyzer and similar tools from identifying your application as a Django project.
Requirements
Python
Supports Python versions 3.6 and later, in line with Django’s compatibility. For more details on Python versions compatible with Django, see What Python version can I use with Django?
Installation
Install django-hide
and its dependencies from PyPI using pip
:
pip install django-hide
Setup
-
Add
django_hide
to yourINSTALLED_APPS
:INSTALLED_APPS = ( ... 'django_hide', )
-
Add
django_hide
middleware to yourMIDDLEWARE
:MIDDLEWARE = ( ... 'django_hide.middleware.CSRFHIDEMiddleware', )
-
Load the
{% load django_hide %}
template tag in your templates:{% extends "base.html" %} {% load django_hide %}
-
Replace
{% csrf_token %}
with{% h_csrf_token %}
in your forms:<form method="post" action="{% url 'action' %}" onsubmit="return confirm('Are you sure?')"> {% h_csrf_token %} <button class="btn btn-sm btn-warning" type="submit">{% "Submit" %}</button> </form>
Note
To ensure your Django application remains hidden, clear Wappalyzer cookies.
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
File details
Details for the file django_hide-0.0.4.1.tar.gz
.
File metadata
- Download URL: django_hide-0.0.4.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e638dd715eade8999f8ab677582690b7ce5d87870512b5029c0831ed5e0fbf |
|
MD5 | 0c2a8abcdd2a2d269d74b2ffcbb1680e |
|
BLAKE2b-256 | 45a52bb20780b1fb1e4ed1daa0ee3231557b7b9602c36a0f028fb10c596fce82 |
File details
Details for the file django_hide-0.0.4.1-py3-none-any.whl
.
File metadata
- Download URL: django_hide-0.0.4.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55f42a20232220599ee0d4e05abe5e205bd5bfc4cb37caaccb097906c39f4a91 |
|
MD5 | a3e3d0c172c3d1593b92d4c5d51d9987 |
|
BLAKE2b-256 | 0b6f916107b08154f44d30a5a01f42b0b7b3988b9ec3ad6962d75754af31af8b |