if URI Path contains “this” and “this” but NOT “this” and “this”
No matter what I do I can’t seem to get it to work.
Tried this and it’s not mathing.
(http.request.uri.path contains “/attachments/” and http.request.uri.path contains “.jpg” and not http.request.uri.path contains “this-term”) or (not http.request.uri.path contains “this-term2”) or (not http.request.uri.path contains “this-trem3”) or (not http.request.uri.path contains “this-term4”) or (not http.request.uri.path contains “this-term5”) or (not http.request.uri.path contains “this-term5”)
if (URI Path contains “this” and “this” and NOT (“this” and “this”))
Or
if (URI Path contains “this” and “this” and (NOT “this”) and “this”)
Or
if (URI Path contains “this” and “this” and NOT (“this” or “this”))
…
I think that you want to match all paths that contain /attachments/ and .jpg, except if it contains one of the other strings? That is not what the logic will give.
As an example, this URI:
/attachments/this-term.jpg
Will not match (http.request.uri.path contains “/attachments/” and http.request.uri.path contains “.jpg” and not http.request.uri.path contains “this-term”), but it will match (not http.request.uri.path contains “this-term2”). The overall rule will be true.
The only URI that will not match this rule looks like this:
Yes. I’m looking to do this if (URI Path contains “this” and “this” and NOT (“this” and “this”))
I think that you want to match all paths that contain /attachments/ and .jpg , except if it contains one of the other strings?
So I want it to match anything that has /attachments/ and .jpg but EXCLUDE any of the keyword strings I provide it. So if any of the term1 term2 etc show up, it skips it.