# Django

## What is cloudFilt on Django ?

**Django** is an open-source, Python-based web framework widely used by developers and organizations to build dynamic websites and APIs with **clean, maintainable code**.

CloudFilt is fully compatible with **Django projects**, making it simple to integrate **advanced bot detection and traffic protection** directly into your applications.

## Why use cloudFilt on Django ?

CloudFilt on Django helps you to :

* **Prevent and block** bad bots, web scraping, Tor traffic, spam submissions, web fraud, business logic abuse, and DDoS attacks.
* **Secure forms and endpoints** from malicious actors.
* **Maintain clean analytics** and backend performance without bot pollution.
* **Inject JavaScript** into templates to track and detect potentially dangerous users.
* Ensure **accurate monitoring, clean logs, and secure API usage**.

## How to activate cloudFilt on Django

1. Login to your **CloudFilt account**.
2. Go to **Websites / WebApps > My Websites**.
3. Click **Settings > Integration & Plugins**.
4. Insert the provided code **before the `<head>` tag** in your HTML templates.
5. Insert the provided code into your **views.py** (or another file within your project) and import the function **`cloudfiltInterception`**.
6. Call **`cloudfiltInterception`** at the beginning of all functions that handle your routes, using the provided condition example.

Once configured, CloudFilt will automatically **protect your Django applications** by filtering out malicious traffic and ensuring secure, reliable performance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudfilt.com/integrations/django.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
