Block random query string

Hello

I’m having trouble setting up a query string blocking rule. Can you guys help me?

I want to set up blocking as follows

domain/?query-string (query-string are random characters)

To exclude, to expel

domain/?fbclid=.*
domain/?gad_source=.*
domain/wc-ajax=.*

I wrote the following script but the whole domain was blocked

(http.request.uri.query contains "+") or (not http.request.uri.query contains "fbclid=") or (not http.request.uri.query contains "gad_source=") or (not http. request.uri.query contains "wc-ajax=") or (not http.request.uri.query contains "zarsrc=")

Please help me. Thank you all

As it is set up currently, it will block all traffic unless it contains all 4 fbclid= gad_source= wc-ajax= AND zarsrc=

I’m guessing you want change the last 3 or to and which would prevent the rule from triggering if just one value is matched, but rather all would need to be true.

Otherwise can you please clarify what you are trying to achieve?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.