aiwaf 0.1.9.0.1__tar.gz → 0.1.9.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aiwaf might be problematic. Click here for more details.
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/PKG-INFO +1 -1
- aiwaf-0.1.9.0.2/aiwaf/__init__.py +6 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/trainer.py +1 -1
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/PKG-INFO +1 -1
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/pyproject.toml +1 -1
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/setup.py +1 -1
- aiwaf-0.1.9.0.1/aiwaf/__init__.py +0 -24
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/LICENSE +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/README.md +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/apps.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/blacklist_manager.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/decorators.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/__init__.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/__init__.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/add_ipexemption.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_diagnose.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_logging.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_reset.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/detect_and_train.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/middleware.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/middleware_logger.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/models.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/resources/model.pkl +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/storage.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/templatetags/__init__.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/templatetags/aiwaf_tags.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/utils.py +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/SOURCES.txt +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/dependency_links.txt +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/requires.txt +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/top_level.txt +0 -0
- {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/setup.cfg +0 -0
|
@@ -17,7 +17,7 @@ from .utils import is_exempt_path
|
|
|
17
17
|
from .storage import get_blacklist_store, get_exemption_store, get_keyword_store
|
|
18
18
|
|
|
19
19
|
# ─────────── Configuration ───────────
|
|
20
|
-
LOG_PATH = settings
|
|
20
|
+
LOG_PATH = getattr(settings, 'AIWAF_ACCESS_LOG', None)
|
|
21
21
|
MODEL_PATH = os.path.join(os.path.dirname(__file__), "resources", "model.pkl")
|
|
22
22
|
|
|
23
23
|
STATIC_KW = [".php", "xmlrpc", "wp-", ".env", ".git", ".bak", "conflg", "shell", "filemanager"]
|
|
@@ -9,7 +9,7 @@ long_description = (HERE / "README.md").read_text(encoding="utf-8")
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="aiwaf",
|
|
12
|
-
version="0.1.9.0.
|
|
12
|
+
version="0.1.9.0.2",
|
|
13
13
|
description="AI‑driven, self‑learning Web Application Firewall for Django",
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
default_app_config = "aiwaf.apps.AiwafConfig"
|
|
2
|
-
|
|
3
|
-
__version__ = "0.1.9.0.1"
|
|
4
|
-
|
|
5
|
-
# Note: Middleware classes are available from aiwaf.middleware
|
|
6
|
-
# Import them only when needed to avoid circular imports during Django app loading= "aiwaf.apps.AiwafConfig"
|
|
7
|
-
|
|
8
|
-
__version__ = "0.1.9.0.1"
|
|
9
|
-
|
|
10
|
-
# Import main middleware classes for easier access
|
|
11
|
-
try:
|
|
12
|
-
from .middleware import (
|
|
13
|
-
IPAndKeywordBlockMiddleware,
|
|
14
|
-
RateLimitMiddleware,
|
|
15
|
-
AIAnomalyMiddleware,
|
|
16
|
-
HoneypotTimingMiddleware,
|
|
17
|
-
UUIDTamperMiddleware
|
|
18
|
-
)
|
|
19
|
-
except ImportError as e:
|
|
20
|
-
# Handle import errors gracefully during package installation
|
|
21
|
-
import sys
|
|
22
|
-
if 'runserver' in sys.argv or 'migrate' in sys.argv or 'shell' in sys.argv:
|
|
23
|
-
print(f"Warning: Could not import middleware classes: {e}")
|
|
24
|
-
print("Tip: Run 'python manage.py aiwaf_diagnose' to troubleshoot")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|