main
Bob Mottram 2024-12-19 16:51:22 +00:00
parent c107dd02b9
commit ce631377a5
1 changed files with 4 additions and 2 deletions

View File

@ -5330,8 +5330,10 @@ def browser_supports_download_filename(ua_str: str) -> bool:
def detect_mitm(self) -> bool: def detect_mitm(self) -> bool:
"""Detect if a request contains a MiTM """Detect if a request contains a MiTM
""" """
mitm_domains = ('cloudflare', 'radware', 'imperva', 'akamai', mitm_domains = (
'azure', 'fastly', 'google') 'cloudflare', 'radware', 'imperva', 'akamai', 'azure',
'fastly', 'google'
)
# look for domains within these headers # look for domains within these headers
check_headers = ( check_headers = (
'Server', 'Report-To', 'Report-to', 'report-to', 'Server', 'Report-To', 'Report-to', 'report-to',