> For the complete documentation index, see [llms.txt](https://docs.cloudfilt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudfilt.com/integrations/django.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
