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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for django_hide-0.0.4.1.tar.gz
Algorithm Hash digest
SHA256 f4e638dd715eade8999f8ab677582690b7ce5d87870512b5029c0831ed5e0fbf
MD5 0c2a8abcdd2a2d269d74b2ffcbb1680e
BLAKE2b-256 45a52bb20780b1fb1e4ed1daa0ee3231557b7b9602c36a0f028fb10c596fce82

See more details on using hashes here.

File details

Details for the file django_hide-0.0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hide-0.0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55f42a20232220599ee0d4e05abe5e205bd5bfc4cb37caaccb097906c39f4a91
MD5 a3e3d0c172c3d1593b92d4c5d51d9987
BLAKE2b-256 0b6f916107b08154f44d30a5a01f42b0b7b3988b9ec3ad6962d75754af31af8b

See more details on using hashes here.

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