Skip to main content

A Django package to obscure Django applications from detection tools like Wappalyzer by encrypting the CSRF token.

Project description

Django Hide

Django CI

Logo

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

  1. Add django_hide to your INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'django_hide',
    )
    
  2. Add django_hide middleware to your MIDDLEWARE:

    MIDDLEWARE = (
        ...
        'django_hide.middleware.CSRFHIDEMiddleware',
    )
    
  3. Load the {% load django_hide %} template tag in your templates:

    {% extends "base.html" %}
    {% load django_hide %}
    
  4. 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

django_hide-0.0.4.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

django_hide-0.0.4.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page