django-hide


Namedjango-hide JSON
Version 0.0.4.1 PyPI version JSON
download
home_pagehttps://github.com/metemaddar/django_hide
SummaryA Django package to obscure Django applications from detection tools like Wappalyzer by encrypting the CSRF token.
upload_time2024-09-03 15:01:14
maintainerNone
docs_urlNone
authorMohammad Etemaddar
requires_python>=3.8
licenseNone
keywords django security wappalyzer hide csrf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Django Hide

![Django CI](https://github.com/metemaddar/django_hide/actions/workflows/django.yml/badge.svg)

<p align="center">
  <img src="https://raw.githubusercontent.com/metemaddar/django_hide/master/docs/logo.svg" alt="Logo"/>
</p>

**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?](https://docs.djangoproject.com/en/stable/faq/install/#what-python-can-i-use-with-django)

## Installation

Install `django-hide` and its dependencies from [PyPI](https://pypi.python.org/pypi/django-hide) using `pip`:

```shell
pip install django-hide
```

## Setup

1. Add `django_hide` to your `INSTALLED_APPS`:

    ```python
    INSTALLED_APPS = (
        ...
        'django_hide',
    )
    ```

2. Add `django_hide` middleware to your `MIDDLEWARE`:

    ```python
    MIDDLEWARE = (
        ...
        'django_hide.middleware.CSRFHIDEMiddleware',
    )
    ```

3. Load the `{% load django_hide %}` template tag in your templates:

    ```html
    {% extends "base.html" %}
    {% load django_hide %}
    ```

4. Replace `{% csrf_token %}` with `{% h_csrf_token %}` in your forms:

    ```html
    <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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/metemaddar/django_hide",
    "name": "django-hide",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "django security wappalyzer hide csrf",
    "author": "Mohammad Etemaddar",
    "author_email": "mohammad.etemaddar@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/45/a5/2bb20780b1fb1e4ed1daa0ee3231557b7b9602c36a0f028fb10c596fce82/django_hide-0.0.4.1.tar.gz",
    "platform": null,
    "description": "# Django Hide\n\n![Django CI](https://github.com/metemaddar/django_hide/actions/workflows/django.yml/badge.svg)\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/metemaddar/django_hide/master/docs/logo.svg\" alt=\"Logo\"/>\n</p>\n\n**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.\n\n## Requirements\n\n### Python\nSupports Python versions 3.6 and later, in line with Django\u2019s compatibility. For more details on Python versions compatible with Django, see [What Python version can I use with Django?](https://docs.djangoproject.com/en/stable/faq/install/#what-python-can-i-use-with-django)\n\n## Installation\n\nInstall `django-hide` and its dependencies from [PyPI](https://pypi.python.org/pypi/django-hide) using `pip`:\n\n```shell\npip install django-hide\n```\n\n## Setup\n\n1. Add `django_hide` to your `INSTALLED_APPS`:\n\n    ```python\n    INSTALLED_APPS = (\n        ...\n        'django_hide',\n    )\n    ```\n\n2. Add `django_hide` middleware to your `MIDDLEWARE`:\n\n    ```python\n    MIDDLEWARE = (\n        ...\n        'django_hide.middleware.CSRFHIDEMiddleware',\n    )\n    ```\n\n3. Load the `{% load django_hide %}` template tag in your templates:\n\n    ```html\n    {% extends \"base.html\" %}\n    {% load django_hide %}\n    ```\n\n4. Replace `{% csrf_token %}` with `{% h_csrf_token %}` in your forms:\n\n    ```html\n    <form method=\"post\" action=\"{% url 'action' %}\" \n          onsubmit=\"return confirm('Are you sure?')\">\n        \n        {% h_csrf_token %}\n\n        <button class=\"btn btn-sm btn-warning\"\n                type=\"submit\">{% \"Submit\" %}</button>\n    </form>\n    ```\n\n## Note\n\nTo ensure your Django application remains hidden, clear Wappalyzer cookies.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Django package to obscure Django applications from detection tools like Wappalyzer by encrypting the CSRF token.",
    "version": "0.0.4.1",
    "project_urls": {
        "Documentation": "https://github.com/metemaddar/django_hide/blob/main/README.md",
        "Homepage": "https://github.com/metemaddar/django_hide",
        "Source": "https://github.com/metemaddar/django_hide",
        "Tracker": "https://github.com/metemaddar/django_hide/issues"
    },
    "split_keywords": [
        "django",
        "security",
        "wappalyzer",
        "hide",
        "csrf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b6f916107b08154f44d30a5a01f42b0b7b3988b9ec3ad6962d75754af31af8b",
                "md5": "a3e3d0c172c3d1593b92d4c5d51d9987",
                "sha256": "55f42a20232220599ee0d4e05abe5e205bd5bfc4cb37caaccb097906c39f4a91"
            },
            "downloads": -1,
            "filename": "django_hide-0.0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3e3d0c172c3d1593b92d4c5d51d9987",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4824,
            "upload_time": "2024-09-03T15:01:13",
            "upload_time_iso_8601": "2024-09-03T15:01:13.245107Z",
            "url": "https://files.pythonhosted.org/packages/0b/6f/916107b08154f44d30a5a01f42b0b7b3988b9ec3ad6962d75754af31af8b/django_hide-0.0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45a52bb20780b1fb1e4ed1daa0ee3231557b7b9602c36a0f028fb10c596fce82",
                "md5": "0c2a8abcdd2a2d269d74b2ffcbb1680e",
                "sha256": "f4e638dd715eade8999f8ab677582690b7ce5d87870512b5029c0831ed5e0fbf"
            },
            "downloads": -1,
            "filename": "django_hide-0.0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0c2a8abcdd2a2d269d74b2ffcbb1680e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3967,
            "upload_time": "2024-09-03T15:01:14",
            "upload_time_iso_8601": "2024-09-03T15:01:14.829987Z",
            "url": "https://files.pythonhosted.org/packages/45/a5/2bb20780b1fb1e4ed1daa0ee3231557b7b9602c36a0f028fb10c596fce82/django_hide-0.0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 15:01:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "metemaddar",
    "github_project": "django_hide",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-hide"
}
        
Elapsed time: 3.36646s