
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
django-template-obfuscator
Advanced tools
Obfuscates desired content in a Django template in order to be difficult to scrape
.. image:: https://badge.fury.io/py/django-template-obfuscator.svg :target: https://badge.fury.io/py/django-template-obfuscator
.. image:: https://travis-ci.org/rafahuelin/django-template-obfuscator.svg?branch=master :target: https://travis-ci.org/rafahuelin/django-template-obfuscator
.. image:: https://codecov.io/gh/rafahuelin/django-template-obfuscator/branch/master/graph/badge.svg :target: https://codecov.io/gh/rafahuelin/django-template-obfuscator
Obfuscates desired content in a Django template in order to be difficult to scrape
The full documentation is at https://django-template-obfuscator.readthedocs.io.
Install django-template-obfuscator::
pip install django-template-obfuscator
Add it to your INSTALLED_APPS
:
.. code-block:: django
INSTALLED_APPS = (
...
'django_template_obfuscator.apps.DjangoTemplateObfuscatorConfig',
...
)
.. code-block:: django
{% load static %}
{% load obfuscator %}
<!-- Place text to encode in between the {% obfuscate %} and {% endobfuscate %} template
tags, then embed it into an Html element with the "obfuscated" class, that will will be
"deobfuscated" using Javascript -->
<!-- CSS file that will avoid the user to copy the content in obfuscated class -->
<link rel="stylesheet" href="{% static 'css/django_template_obfuscator.css' %}">
<p class="obfuscated">
{% obfuscate %}
Text difficult to scrape.
{% endobfuscate %}
</p>
<p class="obfuscated">
{% obfuscate %}
This text as well.
{% endobfuscate %}
</p>
<!-- JS in charge of deobfuscation, making the content understandable to the web's user -->
<script src="{% static 'js/django_template_obfuscator.js' %}"></script>
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install selenium
(myenv) $ python django_template_obfuscator/tests.py
Tools used in rendering this package:
cookiecutter-djangopackage
_.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _cookiecutter-djangopackage
: https://github.com/pydanny/cookiecutter-djangopackage
0.1.5 (2019-09-17) ++++++++++++++++++
0.1.4 (2019-09-05) ++++++++++++++++++
0.1.3 (2019-09-04) ++++++++++++++++++
0.1.2 (2019-09-04) +++++++++++++++++++
Improvements -CSS copy prevention
0.1.0 (2019-09-02) ++++++++++++++++++
FAQs
Obfuscates desired content in a Django template in order to be difficult to scrape
We found that django-template-obfuscator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.