cd /etc/rspamd- create
rspamd.conf.local - create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc- change permissions:
| import json | |
| import re | |
| from mitmproxy import http | |
| url_pattern = re.compile(r"^.*\.nvidiagrid.net/v2/session") | |
| user_agent_pattern = re.compile(r"(Mozilla\/[\d\.]+) \(.+?\)") | |
| def request(flow: http.HTTPFlow) -> None: | |
| # Check if the request matches the regex pattern | |
| if url_pattern.match(flow.request.pretty_url): |