Hi,
I've tried this Regex statement with my website URL, and within the Regex101 website, it is behaving correctly. So all URL's that do not match my website are being selected.
However, when I put the same Regex into ZAP, it is not working and it is still displaying / proxying all the URL's. I've tried adding it to the Session Properties configuration with Zap under all the sections (Exclude from Proxy / Scanner / Spider) but it still doesn't exclude other URL's.
Tried it through the API with:
_zapClient.core.excludeFromProxy(_zapApiKey, "^(?!http(s)?://my\\.testwebsite\\.co\\.uk)"); C# so escaping the characters.
Any idea on why it's working on Regex websites but not within Zap?
Could it be a bug in Zap?
Thanks.