Forum Moderators: phranque
Welcome to WebmasterWorld!
No, query strings are not formally part of a URL; they are data to be passed to the resource at that URL.
I suggest changing your script to output static URLs, and then use mod_rewrite to convert those URLs, when requested, back to dynamic URLs needed to call your script. For example, WebmasterWorld is a dynamic site, but uses static URLs.
Because these static URLs will be requested from your server, you can then use <Location> and <LocationMatch> as you wish.
Jim