I'm trying to filter all clients (using .htaccess) who try to access addresses containing for instance path=\
in the URL, but not those URL's that contain _wpnonce=1234567890
.
The logic is: block all but those who also have the _wpnonce parameter.
The blocking, without testing if it contains the substring looks like this:
RewriteCond %{QUERY_STRING} (menu|mod|path|tag)\=\.?/? [NC,OR]
Is there a way to also include my substring negation there?