INNER CODE UNIT · Python
persist_access
BlessedRebuS/Krawl · src/database/core.py:282
def persist_access(
self,
ip: str,
path: str,
user_agent: str = "",
method: str = "GET",
is_suspicious: bool = False,
is_honeypot_trigger: bool = False,
attack_types: list[str] | None = None,
matched_patterns: dict[str, str] | None = None,
raw_request: str | None = None,
referer: str | None = None,
file_payloads: list[dict] | None = None,
increment_page_visit: bool = False,
max_pages_limit: int = 0,
) -> int:
"""
Persist an access log entry to the database.