# 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.
