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.
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?
Install django-hide
and its dependencies from PyPI using pip
:
pip install django-hide
-
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>
To ensure your Django application remains hidden, clear Wappalyzer cookies.